[PATCH] D90129: Better source location for -Wignored-qualifiers on trailing return types

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 28 05:52:03 PDT 2020


aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.

LGTM aside from a question about a potential assert to add.



================
Comment at: clang/include/clang/Sema/DeclSpec.h:1509
+    SourceLocation getTrailingReturnTypeLoc() const {
+      return SourceLocation::getFromRawEncoding(TrailingReturnTypeLoc);
+    }
----------------
Should we `assert(HasTrailingReturnType);`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90129/new/

https://reviews.llvm.org/D90129



More information about the cfe-commits mailing list