office-gobmx/compilerplugins/clang
Stephan Bergmann 2ac66f5a36 Enable Clang plugin warnings in Bison source code
-Werror is generally suppressed in Bison-generated C/C++ code (as in all other
generated code) to silence warnings from the Bison skeleton code.  And the Clang
plugins suppress warnings in generated WORKDIR code based on the presumed source
location (i.e., taking #line directives into account).  So introduce a new
PLUGIN_WARNINGS_AS_ERRORS mode where warnings from Clang plugins are reported as
errors even if -Werror is suppressed.  That way, any warnings in the Bison
skeleton code still do not lead to compilation errors, while (at least plugin-
emitted) warnings in the genuine source code do.

Unfortunately this cannot also be enabled for Flex source code, as at least
Flex 2.5.39 generates poor code that does not properly prefix all skeleton code
with appropriate #line directives, so that some skeleton code would be mistaken
for genunie source code, and compilation would fail due to errors.

Also, %glr-parser Bison input appears to generate no #line directives at all (at
least with Bison 3.0.4), so all of connectivity/source/parse/sqlbison.y is
considered generated code and plugin warnings are still suppressed throughout.

Change-Id: Id746e81cbfa5f77628b0a34c7b82780948e7db08
2016-04-26 17:49:11 +02:00
..
store update loplugin stylepolice to check local pointers vars 2016-04-26 10:55:58 +00:00
automem.cxx
badstatics.cxx Avoid reserved identifiers 2016-04-22 10:08:07 +02:00
badvectorinit.cxx
bodynotinblock.cxx
bodynotinblock.hxx
checkconfigmacros.cxx
commaoperator.cxx
compat.hxx typo 2016-04-21 13:52:23 +02:00
constantparam.cxx loplugin:constantparams in vcl/ 2016-03-16 08:42:37 +00:00
constantparam.py constantparam loplugin improvements 2016-03-23 12:05:37 +00:00
cppunitassertequals.cxx fix crash in cppunitassertequals plugin 2016-03-05 11:44:27 +00:00
cstylecast.cxx tdf#97966: Remove 'static' keywords 2016-03-11 08:57:51 +00:00
defaultparams.cxx improve defaultparams loplugin 2016-03-07 05:57:17 +00:00
derefnullptr.cxx
externandnotdefined.cxx
faileddyncast.cxx
fpcomparison.cxx tdf#97966: Remove 'static' keywords 2016-03-11 08:57:51 +00:00
getimplementationname.cxx
implicitboolconversion.cxx Use Sequence ctor taking initializer_list 2016-04-21 17:27:43 +02:00
inlinesimplememberfunctions.cxx
inlinevisible.cxx
literaltoboolconversion.cxx
loopvartoosmall.cxx
memoryvar.cxx
mergeclasses.cxx tdf#97966: Remove 'static' keywords 2016-03-11 08:57:51 +00:00
mergeclasses.py
mergeclasses.results Avoid reserved identifiers 2016-04-22 10:13:56 +02:00
nullptr.cxx loplugin:nullptr: Check for more pointer types 2016-03-31 15:49:28 +02:00
oncevar.cxx
override.cxx
passstuffbyref.cxx turn on the passstuffbyref plugin again 2016-04-14 12:00:10 +02:00
plugin.cxx Ignore external code 2016-04-18 15:30:06 +02:00
plugin.hxx
pluginhandler.cxx Enable Clang plugin warnings in Bison source code 2016-04-26 17:49:11 +02:00
pluginhandler.hxx Enable Clang plugin warnings in Bison source code 2016-04-26 17:49:11 +02:00
privatebase.cxx
ptrvector.cxx
rangedforcopy.cxx
redundantcast.cxx Ambiguity between clang:: and llvm::PointerType 2016-03-20 13:29:50 +01:00
refcounting.cxx
rendercontext.cxx
reservedid.cxx Lots of violations in gcc3_linux_x86-64/share.hxx, too, when using libc++ 2016-04-25 18:06:43 +02:00
returnbyref.cxx
salbool.cxx loplugin:salbool: sal_Bool[] -> bool[] 2016-04-21 17:29:40 +02:00
sallogareas.cxx
sallogareas.hxx
sfxpoolitem.cxx
simplifybool.cxx
staticanonymous.cxx tdf#97966 Compiler plugin 2016-04-01 06:47:07 +00:00
staticcall.cxx
staticmethods.cxx tdf#97966: Remove 'static' keywords 2016-03-11 08:57:51 +00:00
stringconcat.cxx
stringconstant.cxx
stylepolice.cxx update loplugin stylepolice to check local pointers vars 2016-04-26 10:55:58 +00:00
typecheck.cxx
typecheck.hxx
unreffun.cxx
unuseddefaultparams.cxx loplugin:unuseddefaultparams 2016-03-07 09:16:00 +00:00
unuseddefaultparams.py loplugin:unuseddefaultparam in various 2016-03-07 05:56:59 +00:00
unusedfields.cxx
unusedfields.py
unusedfieldsremove.cxx tdf#97966: Remove 'static' keywords 2016-03-11 08:57:51 +00:00
unusedmethods.cxx
unusedmethods.py
unusedmethodsremove.cxx tdf#97966: Remove 'static' keywords 2016-03-11 08:57:51 +00:00
unusedvariablecheck.cxx
unusedvariablecheck.hxx
vclwidgets.cxx