[clang] Turn Wdeprecated-literal-operator on by default (PR #111027)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 3 10:14:09 PDT 2024


================
@@ -503,17 +503,16 @@ bool Sema::checkLiteralOperatorId(const CXXScopeSpec &SS,
     const IdentifierInfo *II = Name.Identifier;
     ReservedIdentifierStatus Status = II->isReserved(PP.getLangOpts());
     SourceLocation Loc = Name.getEndLoc();
-    if (!PP.getSourceManager().isInSystemHeader(Loc)) {
----------------
erichkeane wrote:

It isn't clear to me that this check was necessary at all?  So I've removed it.  Both diags happen now without the check, and unconditionally on each-other.  They also share the `FixItHint`, which was done in a frightening-ish way.

https://github.com/llvm/llvm-project/pull/111027


More information about the cfe-commits mailing list