diff options
Diffstat (limited to 'clang/tools/libclang/CIndex.cpp')
-rw-r--r-- | clang/tools/libclang/CIndex.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index 216322b9f93..c7fdb5ad1aa 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -3371,7 +3371,10 @@ clang_parseTranslationUnit_Impl(CXIndex CIdx, const char *source_filename, Args->push_back("-Xclang"); Args->push_back("-detailed-preprocessing-record"); } - + + // Suppress any editor placeholder diagnostics. + Args->push_back("-fallow-editor-placeholders"); + unsigned NumErrors = Diags->getClient()->getNumErrors(); std::unique_ptr<ASTUnit> ErrUnit; // Unless the user specified that they want the preamble on the first parse |