[clang] [Clang] add fix-it hints for unknown attributes (PR #141305)

via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 6 07:06:32 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions c,cpp,cppm,h -- clang/include/clang/Basic/AttributeScopeInfo.h clang/test/FixIt/fixit-unknown-attributes.cpp clang/include/clang/Basic/AttributeCommonInfo.h clang/include/clang/Sema/ParsedAttr.h clang/lib/AST/ASTImporter.cpp clang/lib/Basic/Attributes.cpp clang/lib/Parse/ParseDecl.cpp clang/lib/Parse/ParseDeclCXX.cpp clang/lib/Parse/ParseExprCXX.cpp clang/lib/Parse/ParseHLSL.cpp clang/lib/Parse/ParseObjc.cpp clang/lib/Parse/ParsePragma.cpp clang/lib/Parse/ParseStmt.cpp clang/lib/Sema/SemaAPINotes.cpp clang/lib/Sema/SemaDeclAttr.cpp clang/lib/Sema/SemaDeclCXX.cpp clang/lib/Sema/SemaStmtAttr.cpp clang/lib/Sema/SemaType.cpp clang/lib/Serialization/ASTReaderDecl.cpp clang/test/CXX/module/dcl.dcl/dcl.module/dcl.module.import/p1.cppm clang/test/Parser/cxx11-base-spec-attributes.cpp clang/test/Sema/unknown-attributes.c clang/test/SemaCXX/attr-non-x86-no_caller_saved_registers.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/include/clang/Basic/AttributeScopeInfo.h b/clang/include/clang/Basic/AttributeScopeInfo.h
index 8e5995d40..82fed6def 100644
--- a/clang/include/clang/Basic/AttributeScopeInfo.h
+++ b/clang/include/clang/Basic/AttributeScopeInfo.h
@@ -1,4 +1,5 @@
-//===- AttributeScopeInfo.h - Base info about an Attribute Scope -*- C++ -*-===//
+//===- AttributeScopeInfo.h - Base info about an Attribute Scope -*- C++
+//-*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

``````````

</details>


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


More information about the cfe-commits mailing list