[clang] [clang] Move state out of `PreprocessorOptions` (2/n) (PR #87099)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 29 11:30:50 PDT 2024
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 407a2f231a81862e20d80059870c48d818b61ec2 aa4f75ab41f5bc018c8c5a6352e8b9688249fb21 -- clang/include/clang/Frontend/CompilerInstance.h clang/include/clang/Lex/PreprocessorOptions.h clang/lib/Frontend/CompilerInstance.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/include/clang/Frontend/CompilerInstance.h b/clang/include/clang/Frontend/CompilerInstance.h
index 4684c527de..3464654284 100644
--- a/clang/include/clang/Frontend/CompilerInstance.h
+++ b/clang/include/clang/Frontend/CompilerInstance.h
@@ -138,13 +138,9 @@ class CompilerInstance : public ModuleLoader {
llvm::StringSet<> Failed;
public:
- bool hasAlreadyFailed(StringRef module) {
- return Failed.count(module) > 0;
- }
+ bool hasAlreadyFailed(StringRef module) { return Failed.count(module) > 0; }
- void addFailed(StringRef module) {
- Failed.insert(module);
- }
+ void addFailed(StringRef module) { Failed.insert(module); }
};
/// The set of modules that failed to build.
``````````
</details>
https://github.com/llvm/llvm-project/pull/87099
More information about the cfe-commits
mailing list