[PATCH] D17486: Optionally demote fatal errors to non-fatal errors.

Milian Wolff via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 20 17:29:50 PST 2016


milianw created this revision.
milianw added reviewers: klimek, skalinichev, erikjv, OlivierJG, ogoffart, ehsan.
milianw added a subscriber: llvm-commits.

This behavior is enabled when the new CXTranslationUnit_KeepGoing
option is passed to clang_parseTranslationUnit{,2}. It is geared
towards use by IDEs and similar consumers of the clang-c API where
fatal errors may arise when parsing incomplete code mid-edit, or
when include paths are not properly configured yet. In such situations
one still wants to get as much information as possible about a TU.
Previously, the semantic analysis would not instantiate templates
or report additional fatal errors after the first fatal error was
encountered.

Fixes bug https://llvm.org/bugs/show_bug.cgi?id=24268.

http://reviews.llvm.org/D17486

Files:
  include/clang-c/Index.h
  include/clang/Basic/Diagnostic.h
  lib/Basic/Diagnostic.cpp
  lib/Basic/DiagnosticIDs.cpp
  test/Index/keep-going.cpp
  tools/c-index-test/c-index-test.c
  tools/libclang/CIndex.cpp
  unittests/Basic/DiagnosticTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17486.48603.patch
Type: text/x-patch
Size: 7653 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160221/35ff8385/attachment.bin>


More information about the llvm-commits mailing list