llvm-project/clang-tools-extra/test
Richard 693246e03f [clang-tidy] Modernize-macro-to-enum should skip macros used in other macros
If a macro is used in the expansion of another macro, that can cause
a compile error if the macro is replaced with an enum.  Token-pasting is
an example where converting a macro defined as an integral constant can
cause code to no longer compile.

This change causes such macros to be skipped from the conversion
process in order to prevent fixits from creating code that no longer
compiles.

A subsequent enhancement will examine macro usage in more detail to
allow more cases to be handled without breaking code.

Differential Revision: https://reviews.llvm.org/D124316

Fixes #54948
2022-04-26 21:09:13 -06:00
..
Unit [CMake] Rename TARGET_TRIPLE to LLVM_TARGET_TRIPLE 2022-03-11 15:43:01 -08:00
clang-apply-replacements [clang-apply-replacements] Correctly handle relative paths 2021-11-11 18:28:43 +00:00
clang-change-namespace Update redirected output file. 2020-06-19 23:30:16 -07:00
clang-doc [clang-doc] Improving Markdown Output 2020-03-06 17:37:08 -08:00
clang-include-fixer
clang-move [clang-tools-extra] NFC: Fix trivial typo in documents and comments 2020-04-05 15:28:40 +09:00
clang-query [clang-tooling] Prevent llvm::fatal_error on invalid CLI option 2021-01-29 10:15:06 +01:00
clang-reorder-fields Use function prototypes when appropriate; NFC 2022-02-25 09:08:27 -05:00
clang-tidy [clang-tidy] Modernize-macro-to-enum should skip macros used in other macros 2022-04-26 21:09:13 -06:00
modularize [NFC][clang-tools-extra] Inclusive language: replace master with main 2021-11-25 11:01:16 -06:00
pp-trace [clang] Let PPCallbacks::PragmaWarning() pass specifier as enum instead of string 2021-09-28 19:47:27 -04:00
.clang-format
.gitattributes Move test/.gitattributes to clang-tools-extra/test 2022-04-24 22:30:25 +02:00
CMakeLists.txt [clang-tidy] Fix the condition for building CTTestTidyModule 2022-03-25 21:22:46 +02:00
lit.cfg.py [clang-tools-extra] Reuse llvm_config.use_clang() to set up test environment 2022-03-15 22:14:24 +01:00
lit.site.cfg.py.in [cmake] Provide CURRENT_TOOLS_DIR centrally, replacing CLANG_TOOLS_DIR 2022-03-25 20:22:01 +01:00