Displaying 2 results from an estimated 2 matches for "languageopt".
Did you mean:
languagekit
2012 Sep 21
2
[LLVMdev] Clang API parsing of the destructor
...clang::TextDiagnosticPrinter(
llvm::outs(),
diagnosticOptions);
llvm::IntrusiveRefCntPtr<clang::DiagnosticIDs> pDiagIDs;
clang::DiagnosticsEngine *pDiagnosticsEngine =
new clang::DiagnosticsEngine(pDiagIDs, pTextDiagnosticPrinter);
clang::LangOptions languageOptions;
languageOptions.GNUMode = 1;
languageOptions.CXXExceptions = 1;
languageOptions.RTTI = 1;
languageOptions.Bool = 1;
languageOptions.CPlusPlus = 1;
clang::FileSystemOptions fileSystemOptions;
clang::FileManager fileManager(fileSystemOptions);
clang::SourceManage...
2012 Sep 21
0
[LLVMdev] Clang API parsing of the destructor
...; llvm::outs(),
> diagnosticOptions);
> llvm::IntrusiveRefCntPtr<clang::DiagnosticIDs> pDiagIDs;
> clang::DiagnosticsEngine *pDiagnosticsEngine =
> new clang::DiagnosticsEngine(pDiagIDs, pTextDiagnosticPrinter);
>
> clang::LangOptions languageOptions;
> languageOptions.GNUMode = 1;
> languageOptions.CXXExceptions = 1;
> languageOptions.RTTI = 1;
> languageOptions.Bool = 1;
> languageOptions.CPlusPlus = 1;
>
Don't do this, use CompilerInvocation::setLangDefaults. Your problem is
probably that Implic...