[PATCH] D20428: Tracking exception specification source locations

Malcolm Parsons via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 10 08:03:23 PST 2017


malcolm.parsons added inline comments.


================
Comment at: include/clang/AST/TypeLoc.h:1355
+  bool hasExceptionSpec() const {
+    if (auto FPT = dyn_cast<FunctionProtoType>(getTypePtr())) {
+      return FPT->hasExceptionSpec();
----------------
`auto *`


================
Comment at: include/clang/AST/TypeLoc.h:1443
+    if (hasExceptionSpec())
+      setExceptionSpecRange(SourceRange(Loc));
   }
----------------
`SourceRange`'s constructor from `SourceLocation` is implicit.


https://reviews.llvm.org/D20428





More information about the cfe-commits mailing list