Trick will not compile with llvm 6.0 and Xcode 9.2 on the mac. #579

Found a new language option we need to set in ICG when llvm >= 6.0 to parse
header files correctly.  The option is DoubleSquareBracketAttributes.
This commit is contained in:
Alex Lin 2018-05-07 16:26:20 -05:00
parent 62f95e784f
commit be6f9dc855

View File

@ -97,6 +97,9 @@ int main(int argc, char * argv[]) {
ci.getLangOpts().CPlusPlus = true ;
ci.getLangOpts().CPlusPlus11 = true ;
ci.getLangOpts().CXXOperatorNames = true ;
#if (LIBCLANG_MAJOR >= 6)
ci.getLangOpts().DoubleSquareBracketAttributes = true ;
#endif
// Create all of the necessary managers.
ci.createFileManager();