summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/checkconfigmacros.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/checkconfigmacros.cxx')
-rw-r--r--compilerplugins/clang/checkconfigmacros.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/compilerplugins/clang/checkconfigmacros.cxx b/compilerplugins/clang/checkconfigmacros.cxx
index 23f6947a3646..6daa9ed2a17e 100644
--- a/compilerplugins/clang/checkconfigmacros.cxx
+++ b/compilerplugins/clang/checkconfigmacros.cxx
@@ -67,7 +67,11 @@ void CheckConfigMacros::MacroDefined( const Token& macroToken, const MacroDirect
|| hasPathnamePrefix(filename, BUILDDIR "/config_build/") ))
{
// fprintf(stderr,"DEF: %s %s\n", macroToken.getIdentifierInfo()->getName().data(), filename );
- configMacros.insert( macroToken.getIdentifierInfo()->getName().str());
+ StringRef macro = macroToken.getIdentifierInfo()->getName();
+ // Skia #defines do not have values, but we set them in config_skia.h .
+ if( macro.startswith( "SK_" ) && loplugin::isSamePathname(filename, BUILDDIR "/config_host/config_skia.h"))
+ return;
+ configMacros.insert( macro.str());
}
}