[clang-tools-extra] [clang-tidy] Fix crash in readability-identifier-naming (PR #220221)

via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 3 01:38:50 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 3319 tests passed
* 34 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang Tools
<details>
<summary>Clang Tools.clang-tidy/checkers/readability/identifier-naming.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 4
C:/Python312/python.exe C:/_work/llvm-project/llvm-project/clang-tools-extra/test/../test\clang-tidy\check_clang_tidy.py -std=c++20 C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\readability\identifier-naming.cpp readability-identifier-naming C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\identifier-naming.cpp.tmp --    -config='{CheckOptions: {      readability-identifier-naming.AbstractClassCase: CamelCase,      readability-identifier-naming.AbstractClassPrefix: 'A',      readability-identifier-naming.ClassCase: CamelCase,      readability-identifier-naming.ClassPrefix: 'C',      readability-identifier-naming.ClassConstantCase: CamelCase,      readability-identifier-naming.ClassConstantPrefix: 'k',      readability-identifier-naming.ClassMemberCase: CamelCase,      readability-identifier-naming.ClassConstexprCase: CamelCase,      readability-identifier-naming.GlobalConstexprVariableCase: UPPER_CASE,      readability-identifier-naming.ClassMethodCase: camelBack,      readability-identifier-naming.ConceptCase: CamelCase,      readability-identifier-naming.ConstantCase: UPPER_CASE,      readability-identifier-naming.ConstantSuffix: '_CST',      readability-identifier-naming.ConstexprFunctionCase: lower_case,      readability-identifier-naming.ConstexprMethodCase: lower_case,      readability-identifier-naming.ConstexprVariableCase: lower_case,      readability-identifier-naming.EnumCase: CamelCase,      readability-identifier-naming.EnumPrefix: 'E',      readability-identifier-naming.ScopedEnumConstantCase: CamelCase,      readability-identifier-naming.EnumConstantCase: UPPER_CASE,      readability-identifier-naming.FunctionCase: camelBack,      readability-identifier-naming.GlobalConstantCase: UPPER_CASE,      readability-identifier-naming.GlobalFunctionCase: CamelCase,      readability-identifier-naming.GlobalVariableCase: lower_case,      readability-identifier-naming.GlobalVariablePrefix: 'g_',      readability-identifier-naming.InlineNamespaceCase: lower_case,      readability-identifier-naming.LocalConstexprVariableCase: CamelCase,      readability-identifier-naming.LocalConstantCase: CamelCase,      readability-identifier-naming.LocalConstantPrefix: 'k',      readability-identifier-naming.LocalVariableCase: lower_case,      readability-identifier-naming.MemberCase: CamelCase,      readability-identifier-naming.MemberPrefix: 'm_',      readability-identifier-naming.ConstantMemberCase: lower_case,      readability-identifier-naming.PrivateMemberPrefix: '__',      readability-identifier-naming.ProtectedMemberPrefix: '_',      readability-identifier-naming.PublicMemberCase: lower_case,      readability-identifier-naming.MethodCase: camelBack,      readability-identifier-naming.PrivateMethodPrefix: '__',      readability-identifier-naming.ProtectedMethodPrefix: '_',      readability-identifier-naming.NamespaceCase: lower_case,      readability-identifier-naming.ParameterCase: camelBack,      readability-identifier-naming.ParameterPrefix: 'a_',      readability-identifier-naming.ConstantParameterCase: camelBack,      readability-identifier-naming.ConstantParameterPrefix: 'i_',      readability-identifier-naming.ParameterPackCase: camelBack,      readability-identifier-naming.PureFunctionCase: lower_case,      readability-identifier-naming.PureMethodCase: camelBack,      readability-identifier-naming.StaticConstexprVariableCase: UPPER_CASE,      readability-identifier-naming.StaticConstantCase: UPPER_CASE,      readability-identifier-naming.StaticVariableCase: camelBack,      readability-identifier-naming.StaticVariablePrefix: 's_',      readability-identifier-naming.StructCase: Leading_upper_snake_case,      readability-identifier-naming.TemplateParameterCase: UPPER_CASE,      readability-identifier-naming.TemplateTemplateParameterCase: CamelCase,      readability-identifier-naming.TemplateUsingCase: lower_case,      readability-identifier-naming.TemplateUsingPrefix: 'u_',      readability-identifier-naming.TypeTemplateParameterCase: camelBack,      readability-identifier-naming.TypeTemplateParameterSuffix: '_t',      readability-identifier-naming.TypedefCase: lower_case,      readability-identifier-naming.TypedefSuffix: '_t',      readability-identifier-naming.UnionCase: CamelCase,      readability-identifier-naming.UnionPrefix: 'U',      readability-identifier-naming.UsingCase: lower_case,      readability-identifier-naming.ValueTemplateParameterCase: camelBack,      readability-identifier-naming.VariableCase: lower_case,      readability-identifier-naming.VirtualMethodCase: Camel_Snake_Case,      readability-identifier-naming.VirtualMethodPrefix: 'v_',      readability-identifier-naming.MacroDefinitionCase: UPPER_CASE,      readability-identifier-naming.TypeAliasCase: camel_Snake_Back,      readability-identifier-naming.TypeAliasSuffix: '_t',      readability-identifier-naming.IgnoreFailedSplit: false,      readability-identifier-naming.GlobalPointerCase: CamelCase,      readability-identifier-naming.GlobalPointerSuffix: '_Ptr',      readability-identifier-naming.GlobalConstantPointerCase: UPPER_CASE,      readability-identifier-naming.GlobalConstantPointerSuffix: '_Ptr',      readability-identifier-naming.PointerParameterCase: lower_case,      readability-identifier-naming.PointerParameterPrefix: 'p_',      readability-identifier-naming.ConstantPointerParameterCase: CamelCase,      readability-identifier-naming.ConstantPointerParameterPrefix: 'cp_',      readability-identifier-naming.LocalPointerCase: CamelCase,      readability-identifier-naming.LocalPointerPrefix: 'l_',      readability-identifier-naming.LocalConstantPointerCase: CamelCase,      readability-identifier-naming.LocalConstantPointerPrefix: 'lc_',    }}'    -header-filter=''    -- -fno-delayed-template-parsing -Dbad_macro    -IC:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\readability/Inputs/identifier-naming    -isystem C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\readability/Inputs/identifier-naming/system
# executed command: C:/Python312/python.exe 'C:/_work/llvm-project/llvm-project/clang-tools-extra/test/../test\clang-tidy\check_clang_tidy.py' -std=c++20 'C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\readability\identifier-naming.cpp' readability-identifier-naming 'C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\identifier-naming.cpp.tmp' -- '-config={CheckOptions: {      readability-identifier-naming.AbstractClassCase: CamelCase,      readability-identifier-naming.AbstractClassPrefix: A,      readability-identifier-naming.ClassCase: CamelCase,      readability-identifier-naming.ClassPrefix: C,      readability-identifier-naming.ClassConstantCase: CamelCase,      readability-identifier-naming.ClassConstantPrefix: k,      readability-identifier-naming.ClassMemberCase: CamelCase,      readability-identifier-naming.ClassConstexprCase: CamelCase,      readability-identifier-naming.GlobalConstexprVariableCase: UPPER_CASE,      readability-identifier-naming.ClassMethodCase: camelBack,      readability-identifier-naming.ConceptCase: CamelCase,      readability-identifier-naming.ConstantCase: UPPER_CASE,      readability-identifier-naming.ConstantSuffix: _CST,      readability-identifier-naming.ConstexprFunctionCase: lower_case,      readability-identifier-naming.ConstexprMethodCase: lower_case,      readability-identifier-naming.ConstexprVariableCase: lower_case,      readability-identifier-naming.EnumCase: CamelCase,      readability-identifier-naming.EnumPrefix: E,      readability-identifier-naming.ScopedEnumConstantCase: CamelCase,      readability-identifier-naming.EnumConstantCase: UPPER_CASE,      readability-identifier-naming.FunctionCase: camelBack,      readability-identifier-naming.GlobalConstantCase: UPPER_CASE,      readability-identifier-naming.GlobalFunctionCase: CamelCase,      readability-identifier-naming.GlobalVariableCase: lower_case,      readability-identifier-naming.GlobalVariablePrefix: g_,      readability-identifier-naming.InlineNamespaceCase: lower_case,      readability-identifier-naming.LocalConstexprVariableCase: CamelCase,      readability-identifier-naming.LocalConstantCase: CamelCase,      readability-identifier-naming.LocalConstantPrefix: k,      readability-identifier-naming.LocalVariableCase: lower_case,      readability-identifier-naming.MemberCase: CamelCase,      readability-identifier-naming.MemberPrefix: m_,      readability-identifier-naming.ConstantMemberCase: lower_case,      readability-identifier-naming.PrivateMemberPrefix: __,      readability-identifier-naming.ProtectedMemberPrefix: _,      readability-identifier-naming.PublicMemberCase: lower_case,      readability-identifier-naming.MethodCase: camelBack,      readability-identifier-naming.PrivateMethodPrefix: __,      readability-identifier-naming.ProtectedMethodPrefix: _,      readability-identifier-naming.NamespaceCase: lower_case,      readability-identifier-naming.ParameterCase: camelBack,      readability-identifier-naming.ParameterPrefix: a_,      readability-identifier-naming.ConstantParameterCase: camelBack,      readability-identifier-naming.ConstantParameterPrefix: i_,      readability-identifier-naming.ParameterPackCase: camelBack,      readability-identifier-naming.PureFunctionCase: lower_case,      readability-identifier-naming.PureMethodCase: camelBack,      readability-identifier-naming.StaticConstexprVariableCase: UPPER_CASE,      readability-identifier-naming.StaticConstantCase: UPPER_CASE,      readability-identifier-naming.StaticVariableCase: camelBack,      readability-identifier-naming.StaticVariablePrefix: s_,      readability-identifier-naming.StructCase: Leading_upper_snake_case,      readability-identifier-naming.TemplateParameterCase: UPPER_CASE,      readability-identifier-naming.TemplateTemplateParameterCase: CamelCase,      readability-identifier-naming.TemplateUsingCase: lower_case,      readability-identifier-naming.TemplateUsingPrefix: u_,      readability-identifier-naming.TypeTemplateParameterCase: camelBack,      readability-identifier-naming.TypeTemplateParameterSuffix: _t,      readability-identifier-naming.TypedefCase: lower_case,      readability-identifier-naming.TypedefSuffix: _t,      readability-identifier-naming.UnionCase: CamelCase,      readability-identifier-naming.UnionPrefix: U,      readability-identifier-naming.UsingCase: lower_case,      readability-identifier-naming.ValueTemplateParameterCase: camelBack,      readability-identifier-naming.VariableCase: lower_case,      readability-identifier-naming.VirtualMethodCase: Camel_Snake_Case,      readability-identifier-naming.VirtualMethodPrefix: v_,      readability-identifier-naming.MacroDefinitionCase: UPPER_CASE,      readability-identifier-naming.TypeAliasCase: camel_Snake_Back,      readability-identifier-naming.TypeAliasSuffix: _t,      readability-identifier-naming.IgnoreFailedSplit: false,      readability-identifier-naming.GlobalPointerCase: CamelCase,      readability-identifier-naming.GlobalPointerSuffix: _Ptr,      readability-identifier-naming.GlobalConstantPointerCase: UPPER_CASE,      readability-identifier-naming.GlobalConstantPointerSuffix: _Ptr,      readability-identifier-naming.PointerParameterCase: lower_case,      readability-identifier-naming.PointerParameterPrefix: p_,      readability-identifier-naming.ConstantPointerParameterCase: CamelCase,      readability-identifier-naming.ConstantPointerParameterPrefix: cp_,      readability-identifier-naming.LocalPointerCase: CamelCase,      readability-identifier-naming.LocalPointerPrefix: l_,      readability-identifier-naming.LocalConstantPointerCase: CamelCase,      readability-identifier-naming.LocalConstantPointerPrefix: lc_,    }}' -header-filter= -- -fno-delayed-template-parsing -Dbad_macro '-IC:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\readability/Inputs/identifier-naming' -isystem 'C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\readability/Inputs/identifier-naming/system'
# .---command stdout------------
# | Running ['clang-tidy', '--experimental-custom-checks', 'C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\tools\\extra\\test\\clang-tidy\\checkers\\readability\\Output\\identifier-naming.cpp.tmp.cpp', '-fix', '--checks=-*,readability-identifier-naming', '-config={CheckOptions: {      readability-identifier-naming.AbstractClassCase: CamelCase,      readability-identifier-naming.AbstractClassPrefix: A,      readability-identifier-naming.ClassCase: CamelCase,      readability-identifier-naming.ClassPrefix: C,      readability-identifier-naming.ClassConstantCase: CamelCase,      readability-identifier-naming.ClassConstantPrefix: k,      readability-identifier-naming.ClassMemberCase: CamelCase,      readability-identifier-naming.ClassConstexprCase: CamelCase,      readability-identifier-naming.GlobalConstexprVariableCase: UPPER_CASE,      readability-identifier-naming.ClassMethodCase: camelBack,      readability-identifier-naming.ConceptCase: CamelCase,      readability-identifier-naming.ConstantCase: UPPER_CASE,      readability-identifier-naming.ConstantSuffix: _CST,      readability-identifier-naming.ConstexprFunctionCase: lower_case,      readability-identifier-naming.ConstexprMethodCase: lower_case,      readability-identifier-naming.ConstexprVariableCase: lower_case,      readability-identifier-naming.EnumCase: CamelCase,      readability-identifier-naming.EnumPrefix: E,      readability-identifier-naming.ScopedEnumConstantCase: CamelCase,      readability-identifier-naming.EnumConstantCase: UPPER_CASE,      readability-identifier-naming.FunctionCase: camelBack,      readability-identifier-naming.GlobalConstantCase: UPPER_CASE,      readability-identifier-naming.GlobalFunctionCase: CamelCase,      readability-identifier-naming.GlobalVariableCase: lower_case,      readability-identifier-naming.GlobalVariablePrefix: g_,      readability-identifier-naming.InlineNamespaceCase: lower_case,      readability-identifier-naming.LocalConstexprVariableCase: CamelCase,      readability-identifier-naming.LocalConstantCase: CamelCase,      readability-identifier-naming.LocalConstantPrefix: k,      readability-identifier-naming.LocalVariableCase: lower_case,      readability-identifier-naming.MemberCase: CamelCase,      readability-identifier-naming.MemberPrefix: m_,      readability-identifier-naming.ConstantMemberCase: lower_case,      readability-identifier-naming.PrivateMemberPrefix: __,      readability-identifier-naming.ProtectedMemberPrefix: _,      readability-identifier-naming.PublicMemberCase: lower_case,      readability-identifier-naming.MethodCase: camelBack,      readability-identifier-naming.PrivateMethodPrefix: __,      readability-identifier-naming.ProtectedMethodPrefix: _,      readability-identifier-naming.NamespaceCase: lower_case,      readability-identifier-naming.ParameterCase: camelBack,      readability-identifier-naming.ParameterPrefix: a_,      readability-identifier-naming.ConstantParameterCase: camelBack,      readability-identifier-naming.ConstantParameterPrefix: i_,      readability-identifier-naming.ParameterPackCase: camelBack,      readability-identifier-naming.PureFunctionCase: lower_case,      readability-identifier-naming.PureMethodCase: camelBack,      readability-identifier-naming.StaticConstexprVariableCase: UPPER_CASE,      readability-identifier-naming.StaticConstantCase: UPPER_CASE,      readability-identifier-naming.StaticVariableCase: camelBack,      readability-identifier-naming.StaticVariablePrefix: s_,      readability-identifier-naming.StructCase: Leading_upper_snake_case,      readability-identifier-naming.TemplateParameterCase: UPPER_CASE,      readability-identifier-naming.TemplateTemplateParameterCase: CamelCase,      readability-identifier-naming.TemplateUsingCase: lower_case,      readability-identifier-naming.TemplateUsingPrefix: u_,      readability-identifier-naming.TypeTemplateParameterCase: camelBack,      readability-identifier-naming.TypeTemplateParameterSuffix: _t,      readability-identifier-naming.TypedefCase: lower_case,      readability-identifier-naming.TypedefSuffix: _t,      readability-identifier-naming.UnionCase: CamelCase,      readability-identifier-naming.UnionPrefix: U,      readability-identifier-naming.UsingCase: lower_case,      readability-identifier-naming.ValueTemplateParameterCase: camelBack,      readability-identifier-naming.VariableCase: lower_case,      readability-identifier-naming.VirtualMethodCase: Camel_Snake_Case,      readability-identifier-naming.VirtualMethodPrefix: v_,      readability-identifier-naming.MacroDefinitionCase: UPPER_CASE,      readability-identifier-naming.TypeAliasCase: camel_Snake_Back,      readability-identifier-naming.TypeAliasSuffix: _t,      readability-identifier-naming.IgnoreFailedSplit: false,      readability-identifier-naming.GlobalPointerCase: CamelCase,      readability-identifier-naming.GlobalPointerSuffix: _Ptr,      readability-identifier-naming.GlobalConstantPointerCase: UPPER_CASE,      readability-identifier-naming.GlobalConstantPointerSuffix: _Ptr,      readability-identifier-naming.PointerParameterCase: lower_case,      readability-identifier-naming.PointerParameterPrefix: p_,      readability-identifier-naming.ConstantPointerParameterCase: CamelCase,      readability-identifier-naming.ConstantPointerParameterPrefix: cp_,      readability-identifier-naming.LocalPointerCase: CamelCase,      readability-identifier-naming.LocalPointerPrefix: l_,      readability-identifier-naming.LocalConstantPointerCase: CamelCase,      readability-identifier-naming.LocalConstantPointerPrefix: lc_,    }}', '-header-filter=', '--', '-fno-delayed-template-parsing', '-Dbad_macro', '-IC:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\checkers\\readability/Inputs/identifier-naming', '-isystem', 'C:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\checkers\\readability/Inputs/identifier-naming/system', '-std=c++20', '-nostdinc++', '-isystem', 'C:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\checkers\\Inputs\\Headers\\std']...
# | ------------------------ clang-tidy output -----------------------
# | 120 warnings generated.
# | 
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\identifier-naming.cpp.tmp.cpp:102:11: warning: invalid case style for namespace 'FOO_NS' [readability-identifier-naming]
# |   102 | namespace FOO_NS {
# |       |           ^~~~~~
# |       |           foo_ns
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\identifier-naming.cpp.tmp.cpp:102:11: note: FIX-IT applied suggested code changes
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\identifier-naming.cpp.tmp.cpp:439:53: note: FIX-IT applied suggested code changes
# |   439 | using mysuper_tpl_t = my_other_templated_class  <:: FOO_NS  ::my_class>;
# |       |                                                     ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\identifier-naming.cpp.tmp.cpp:598:57: note: FIX-IT applied suggested code changes
# |   598 | using SomeOtherTemplate = my_other_templated_class  <:: FOO_NS  ::my_class>;
# |       |                                                         ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\identifier-naming.cpp.tmp.cpp:606:5: note: FIX-IT applied suggested code changes
# |   606 |   ::FOO_NS::InlineNamespace::abstract_class::CLASS_METHOD();
# |       |     ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\identifier-naming.cpp.tmp.cpp:608:5: note: FIX-IT applied suggested code changes
# |   608 |   ::FOO_NS::InlineNamespace::static_Function();
# |       |     ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\identifier-naming.cpp.tmp.cpp:611:11: note: FIX-IT applied suggested code changes
# |   611 |   using ::FOO_NS::InlineNamespace::CE_function;
# |       |           ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\identifier-naming.cpp.tmp.cpp:714:17: note: FIX-IT applied suggested code changes
# |   714 | using namespace FOO_NS;
# |       |                 ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\identifier-naming.cpp.tmp.cpp:717:17: note: FIX-IT applied suggested code changes
# |   717 | using namespace FOO_NS::InlineNamespace;
# |       |                 ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\identifier-naming.cpp.tmp.cpp:105:18: warning: invalid case style for inline namespace 'InlineNamespace' [readability-identifier-naming]
# |   105 | inline namespace InlineNamespace {
# |       |                  ^~~~~~~~~~~~~~~
# |       |                  inline_namespace
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\identifier-naming.cpp.tmp.cpp:105:18: note: FIX-IT applied suggested code changes
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\identifier-naming.cpp.tmp.cpp:606:13: note: FIX-IT applied suggested code changes
# |   606 |   ::FOO_NS::InlineNamespace::abstract_class::CLASS_METHOD();
# |       |             ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\identifier-naming.cpp.tmp.cpp:608:13: note: FIX-IT applied suggested code changes
# |   608 |   ::FOO_NS::InlineNamespace::static_Function();
# |       |             ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\identifier-naming.cpp.tmp.cpp:611:19: note: FIX-IT applied suggested code changes
# |   611 |   using ::FOO_NS::InlineNamespace::CE_function;
# |       |                   ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\identifier-naming.cpp.tmp.cpp:717:25: note
# | ...
# `---data was truncated (10240/149959) (change limit with -D output_limit=N)
# .---command stderr------------
# | Traceback (most recent call last):
# |   File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 576, in <module>
# |     main()
# |   File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 572, in main
# |     CheckRunner(args, extra_args).run()
# |   File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 437, in run
# |     self.check_messages(main_output)
# |   File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 362, in check_messages
# |     try_run(
# |   File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 68, in try_run
# |     process_output = subprocess.check_output(args, stderr=subprocess.STDOUT).decode(
# |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# |   File "c:\python312\Lib\subprocess.py", line 466, in check_output
# |     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
# |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# |   File "c:\python312\Lib\subprocess.py", line 571, in run
# |     raise CalledProcessError(retcode, process.args,
# | subprocess.CalledProcessError: Command '['FileCheck', '-input-file=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\tools\\extra\\test\\clang-tidy\\checkers\\readability\\Output\\identifier-naming.cpp.tmp.cpp.msg', 'C:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\checkers\\readability\\identifier-naming.cpp', '-check-prefixes=CHECK-MESSAGES', '-implicit-check-not={{warning|error}}:']' returned non-zero exit status 1.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the cfe-commits mailing list