diff options
author | Owen Pan <owenpiano@gmail.com> | 2025-09-19 22:26:59 -0700 |
---|---|---|
committer | Owen Pan <owenpiano@gmail.com> | 2025-09-19 22:30:46 -0700 |
commit | 43cfad6e26bcaba3423972d3e29fdfd4c440a36b (patch) | |
tree | f30f20c7cfd3918cca7d3471b18e4e58831f1aee /clang/lib/Format/Format.cpp | |
parent | 25e218d7562f1f360a8f112de2b771585cd922c3 (diff) | |
download | llvm-43cfad6e26bcaba3423972d3e29fdfd4c440a36b.zip llvm-43cfad6e26bcaba3423972d3e29fdfd4c440a36b.tar.gz llvm-43cfad6e26bcaba3423972d3e29fdfd4c440a36b.tar.bz2 |
[clang-format][NFC] Add is_sorted() assertion for binary_search()
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r-- | clang/lib/Format/Format.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 68e9618..24a36d9 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -3158,6 +3158,7 @@ private: "UIImage", "UIView", }; + assert(llvm::is_sorted(FoundationIdentifiers)); for (auto *Line : AnnotatedLines) { if (Line->First && (Line->First->TokenText.starts_with("#") || |