diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-02-18 20:11:31 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-02-18 20:11:31 +0000 |
| commit | 707cf72cb8ef3ed3a66e4667eeb27ec235fe2376 (patch) | |
| tree | 07712af2e0f86014a2142882143e92c1c3f12f20 /clang/tools/CIndex/CIndexer.h | |
| parent | 5c60a6f5970e581fdcb0638d80e1fd0998bcca6c (diff) | |
| download | bcm5719-llvm-707cf72cb8ef3ed3a66e4667eeb27ec235fe2376.tar.gz bcm5719-llvm-707cf72cb8ef3ed3a66e4667eeb27ec235fe2376.zip | |
Resurrect the displayDiagnostics parameter to clang_createIndex(), and
display captured diagnostics when we can't return an invalid
CXTranslationUnit.
llvm-svn: 96606
Diffstat (limited to 'clang/tools/CIndex/CIndexer.h')
| -rw-r--r-- | clang/tools/CIndex/CIndexer.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/clang/tools/CIndex/CIndexer.h b/clang/tools/CIndex/CIndexer.h index d559f138647..1fa3ca93876 100644 --- a/clang/tools/CIndex/CIndexer.h +++ b/clang/tools/CIndex/CIndexer.h @@ -34,11 +34,14 @@ namespace cxstring { class CIndexer { bool UseExternalASTGeneration; bool OnlyLocalDecls; - + bool DisplayDiagnostics; + llvm::sys::Path ClangPath; public: - CIndexer() : UseExternalASTGeneration(false), OnlyLocalDecls(false) { } + CIndexer() + : UseExternalASTGeneration(false), OnlyLocalDecls(false), + DisplayDiagnostics(false) { } /// \brief Whether we only want to see "local" declarations (that did not /// come from a previous precompiled header). If false, we want to see all @@ -46,6 +49,11 @@ public: bool getOnlyLocalDecls() const { return OnlyLocalDecls; } void setOnlyLocalDecls(bool Local = true) { OnlyLocalDecls = Local; } + bool getDisplayDiagnostics() const { return DisplayDiagnostics; } + void setDisplayDiagnostics(bool Display = true) { + DisplayDiagnostics = Display; + } + bool getUseExternalASTGeneration() const { return UseExternalASTGeneration; } void setUseExternalASTGeneration(bool Value) { UseExternalASTGeneration = Value; |

