[clang-tools-extra] 96ec447 - [NFC] Fix various unintentional `//namespace` formatting

Jordan Rupprecht via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 24 21:17:55 PST 2024


Author: Jordan Rupprecht
Date: 2024-01-24T21:17:45-08:00
New Revision: 96ec447a6ae39edff92674e9849de2bf21bfd430

URL: https://github.com/llvm/llvm-project/commit/96ec447a6ae39edff92674e9849de2bf21bfd430
DIFF: https://github.com/llvm/llvm-project/commit/96ec447a6ae39edff92674e9849de2bf21bfd430.diff

LOG: [NFC] Fix various unintentional `//namespace` formatting

Added: 
    

Modified: 
    clang-tools-extra/test/clang-tidy/checkers/abseil/Inputs/absl/external-file.h
    clang-tools-extra/test/clang-tidy/checkers/abseil/faster-strsplit-delimiter.cpp
    clang-tools-extra/test/clang-tidy/checkers/modernize/concat-nested-namespaces.cpp
    clang/lib/StaticAnalyzer/Checkers/DebugContainerModeling.cpp
    clang/lib/StaticAnalyzer/Checkers/DebugIteratorModeling.cpp
    clang/lib/StaticAnalyzer/Checkers/InvalidatedIteratorChecker.cpp
    clang/lib/StaticAnalyzer/Checkers/IteratorRangeChecker.cpp
    clang/test/CXX/drs/dr23xx.cpp
    clang/test/CXX/over/over.match/over.match.funcs/over.match.oper/p3-2a.cpp
    compiler-rt/lib/sanitizer_common/sanitizer_hash.h
    llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventsWrapper.h

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/test/clang-tidy/checkers/abseil/Inputs/absl/external-file.h b/clang-tools-extra/test/clang-tidy/checkers/abseil/Inputs/absl/external-file.h
index 11e2e4aa96c5906..4a57c461f7fa478 100644
--- a/clang-tools-extra/test/clang-tidy/checkers/abseil/Inputs/absl/external-file.h
+++ b/clang-tools-extra/test/clang-tidy/checkers/abseil/Inputs/absl/external-file.h
@@ -2,5 +2,5 @@ namespace absl {
 namespace base_internal {
 void InternalFunction() {}
 } // namespace base_internal 
-} //namespace absl
+} // namespace absl
 void DirectAccess2() { absl::base_internal::InternalFunction(); }

diff  --git a/clang-tools-extra/test/clang-tidy/checkers/abseil/faster-strsplit-delimiter.cpp b/clang-tools-extra/test/clang-tidy/checkers/abseil/faster-strsplit-delimiter.cpp
index b5035941c9cebb7..e6787f8083750cb 100644
--- a/clang-tools-extra/test/clang-tidy/checkers/abseil/faster-strsplit-delimiter.cpp
+++ b/clang-tools-extra/test/clang-tidy/checkers/abseil/faster-strsplit-delimiter.cpp
@@ -14,7 +14,7 @@ struct MaxSplitsImpl {
   MaxSplitsImpl();
   ~MaxSplitsImpl();
 };
-} //namespace strings_internal
+} // namespace strings_internal
 
 template <typename Delim>
 strings_internal::Splitter StrSplit(absl::string_view, Delim) {
@@ -36,7 +36,7 @@ strings_internal::MaxSplitsImpl MaxSplits(Delim, int) {
   return {};
 }
 
-} //namespace absl
+} // namespace absl
 
 void SplitDelimiters() {
   absl::StrSplit("ABC", "A");

diff  --git a/clang-tools-extra/test/clang-tidy/checkers/modernize/concat-nested-namespaces.cpp b/clang-tools-extra/test/clang-tidy/checkers/modernize/concat-nested-namespaces.cpp
index fbad0b9884b8a9d..9d8f199f6408790 100644
--- a/clang-tools-extra/test/clang-tidy/checkers/modernize/concat-nested-namespaces.cpp
+++ b/clang-tools-extra/test/clang-tidy/checkers/modernize/concat-nested-namespaces.cpp
@@ -178,9 +178,9 @@ namespace n47 {
 void foo() {}
 } // namespace n47
 #pragma clang diagnostic pop
-} //namespace n46
+} // namespace n46
 #undef N45_INNER
-} //namespace n45
+} // namespace n45
 // CHECK-FIXES-NORMAL: #define N45_INNER
 // CHECK-FIXES-NORMAL: #pragma clang diagnostic push
 // CHECK-FIXES-NORMAL: namespace n45::n46::n47 {

diff  --git a/clang/lib/StaticAnalyzer/Checkers/DebugContainerModeling.cpp b/clang/lib/StaticAnalyzer/Checkers/DebugContainerModeling.cpp
index 97f769b1c451f6e..72186a99d943583 100644
--- a/clang/lib/StaticAnalyzer/Checkers/DebugContainerModeling.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/DebugContainerModeling.cpp
@@ -52,7 +52,7 @@ class DebugContainerModeling
   bool evalCall(const CallEvent &Call, CheckerContext &C) const;
 };
 
-} //namespace
+} // namespace
 
 bool DebugContainerModeling::evalCall(const CallEvent &Call,
                                       CheckerContext &C) const {

diff  --git a/clang/lib/StaticAnalyzer/Checkers/DebugIteratorModeling.cpp b/clang/lib/StaticAnalyzer/Checkers/DebugIteratorModeling.cpp
index ff479c7b0ac89dc..79ab71d7829db7a 100644
--- a/clang/lib/StaticAnalyzer/Checkers/DebugIteratorModeling.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/DebugIteratorModeling.cpp
@@ -55,7 +55,7 @@ class DebugIteratorModeling
   bool evalCall(const CallEvent &Call, CheckerContext &C) const;
 };
 
-} //namespace
+} // namespace
 
 bool DebugIteratorModeling::evalCall(const CallEvent &Call,
                                      CheckerContext &C) const {

diff  --git a/clang/lib/StaticAnalyzer/Checkers/InvalidatedIteratorChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/InvalidatedIteratorChecker.cpp
index 3f5856a3efbe75e..2e21f619a133e71 100644
--- a/clang/lib/StaticAnalyzer/Checkers/InvalidatedIteratorChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/InvalidatedIteratorChecker.cpp
@@ -47,7 +47,7 @@ class InvalidatedIteratorChecker
 
 };
 
-} //namespace
+} // namespace
 
 void InvalidatedIteratorChecker::checkPreCall(const CallEvent &Call,
                                               CheckerContext &C) const {

diff  --git a/clang/lib/StaticAnalyzer/Checkers/IteratorRangeChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/IteratorRangeChecker.cpp
index c8828219dd733d0..d2b61fb92483c33 100644
--- a/clang/lib/StaticAnalyzer/Checkers/IteratorRangeChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/IteratorRangeChecker.cpp
@@ -68,7 +68,7 @@ bool isAheadOfRange(ProgramStateRef State, const IteratorPosition &Pos);
 bool isBehindPastTheEnd(ProgramStateRef State, const IteratorPosition &Pos);
 bool isZero(ProgramStateRef State, NonLoc Val);
 
-} //namespace
+} // namespace
 
 void IteratorRangeChecker::checkPreCall(const CallEvent &Call,
                                         CheckerContext &C) const {

diff  --git a/clang/test/CXX/drs/dr23xx.cpp b/clang/test/CXX/drs/dr23xx.cpp
index 03077ae9239a458..265b51aff8ae640 100644
--- a/clang/test/CXX/drs/dr23xx.cpp
+++ b/clang/test/CXX/drs/dr23xx.cpp
@@ -44,7 +44,7 @@ void g() {
     struct dr2303::F -> B -> A<int, int>
     struct dr2303::F -> E -> A<int, int>}} */
 }
-} //namespace dr2303
+} // namespace dr2303
 #endif
 
 // dr2331: na

diff  --git a/clang/test/CXX/over/over.match/over.match.funcs/over.match.oper/p3-2a.cpp b/clang/test/CXX/over/over.match/over.match.funcs/over.match.oper/p3-2a.cpp
index d757d28860a40e8..54dabb4be2c055e 100644
--- a/clang/test/CXX/over/over.match/over.match.funcs/over.match.oper/p3-2a.cpp
+++ b/clang/test/CXX/over/over.match/over.match.funcs/over.match.oper/p3-2a.cpp
@@ -509,7 +509,7 @@ using B::operator==;
 bool a = 0 == A::S();  // expected-error {{invalid operands to binary expression}}
 }
 
-} //namespace ADL_GH68901
+} // namespace ADL_GH68901
 
 namespace function_scope_operator_eqeq {
 // For non-members, we always lookup for matching operator!= in the namespace scope of

diff  --git a/compiler-rt/lib/sanitizer_common/sanitizer_hash.h b/compiler-rt/lib/sanitizer_common/sanitizer_hash.h
index f7cf9f234e6fc68..648fcfaa44e9af7 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_hash.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_hash.h
@@ -62,6 +62,6 @@ class MurMur2Hash64Builder {
     return x;
   }
 };
-}  //namespace __sanitizer
+}  // namespace __sanitizer
 
 #endif  // SANITIZER_HASH_H

diff  --git a/llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventsWrapper.h b/llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventsWrapper.h
index 088b33b798a3242..dfe208f2ccfd9ce 100644
--- a/llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventsWrapper.h
+++ b/llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventsWrapper.h
@@ -105,6 +105,6 @@ class IntelJITEventsWrapper {
   }
 };
 
-} //namespace llvm
+} // namespace llvm
 
 #endif //INTEL_JIT_EVENTS_WRAPPER_H


        


More information about the cfe-commits mailing list