summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-02-18 18:08:43 +0000
committerDouglas Gregor <dgregor@apple.com>2010-02-18 18:08:43 +0000
commit33cdd81064a910de1fd86c56995a471e3a4e20a0 (patch)
tree8977503f8dfd0cce89032c2a5a582bd5cb8f645f /clang/lib/CodeGen/CodeGenModule.cpp
parenta124a46748357b9e654adce7a50318a5f0648e48 (diff)
downloadbcm5719-llvm-33cdd81064a910de1fd86c56995a471e3a4e20a0.tar.gz
bcm5719-llvm-33cdd81064a910de1fd86c56995a471e3a4e20a0.zip
Rework how CIndex handles diagnostics. Rather than using a callback,
we attach diagnostics to translation units and code-completion results, so they can be queried at any time. To facilitate this, the new StoredDiagnostic class stores a diagnostic in a serializable/deserializable form, and ASTUnit knows how to capture diagnostics in this stored form. CIndex's CXDiagnostic is a thin wrapper around StoredDiagnostic, providing a C interface to stored or de-serialized diagnostics. I've XFAIL'd one test case temporarily, because currently we end up storing diagnostics in an ASTUnit that's never returned to the user (because it contains errors). I'll introduce a temporary fix for this soon; the real fix will be to allow us to return and query invalid ASTs. llvm-svn: 96592
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud