[PATCH] D65591: [AST] Add a flag indicating if any subexpression had errors

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 1 10:29:32 PDT 2019


ilya-biryukov created this revision.
ilya-biryukov added a reviewer: rsmith.
Herald added a subscriber: jfb.
Herald added a project: clang.
ilya-biryukov added a child revision: D65592: [Parser] Avoid spurious 'missing template' error in presence of typos.

The only subexpression that is considered an error now is TypoExpr, but
we plan to add expressions with errors to improve editor tooling on broken
code. We intend to use the same mechanism to guard against spurious
diagnostics on those as well.

See the follow-up revision for an actual usage of the flag.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D65591

Files:
  clang/include/clang/AST/Expr.h
  clang/include/clang/AST/ExprCXX.h
  clang/include/clang/AST/ExprObjC.h
  clang/include/clang/AST/ExprOpenMP.h
  clang/include/clang/AST/Stmt.h
  clang/lib/AST/Expr.cpp
  clang/lib/AST/ExprCXX.cpp
  clang/lib/AST/ExprObjC.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65591.212848.patch
Type: text/x-patch
Size: 93287 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190801/6bd6c478/attachment-0001.bin>


More information about the cfe-commits mailing list