[clang] [Clang][NFC] Avoid opening namespace std (PR #95470)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 13 13:30:33 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 45964eb9b88c46045e4e84beb4e2135cdeed6855 f5fc162cd1a6fdef3dcdc3e4c73aedcf67b603df -- clang/include/clang/Format/Format.h clang/include/clang/Frontend/PrecompiledPreamble.h clang/include/clang/Frontend/SerializedDiagnosticReader.h clang/lib/StaticAnalyzer/Checkers/BlockInCriticalSectionChecker.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/include/clang/Frontend/SerializedDiagnosticReader.h b/clang/include/clang/Frontend/SerializedDiagnosticReader.h
index 96d576a63b..f7c2012a76 100644
--- a/clang/include/clang/Frontend/SerializedDiagnosticReader.h
+++ b/clang/include/clang/Frontend/SerializedDiagnosticReader.h
@@ -129,6 +129,7 @@ protected:
} // namespace clang
template <>
-struct std::is_error_code_enum<clang::serialized_diags::SDError> : std::true_type {};
+struct std::is_error_code_enum<clang::serialized_diags::SDError>
+ : std::true_type {};
#endif // LLVM_CLANG_FRONTEND_SERIALIZEDDIAGNOSTICREADER_H
``````````
</details>
https://github.com/llvm/llvm-project/pull/95470
More information about the cfe-commits
mailing list