diff options
author | Kazu Hirata <kazu@google.com> | 2025-04-19 20:33:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-19 20:33:53 -0700 |
commit | f2ec5e40d96d6ba8f99e419009b6547965905cfe (patch) | |
tree | b30e972f646f0e9dca4b9b133d5b6da62b953781 /clang/lib/Format/Format.cpp | |
parent | eb78b9b42f56c59a7fec7fae8f14b570e0a94646 (diff) | |
download | llvm-f2ec5e40d96d6ba8f99e419009b6547965905cfe.zip llvm-f2ec5e40d96d6ba8f99e419009b6547965905cfe.tar.gz llvm-f2ec5e40d96d6ba8f99e419009b6547965905cfe.tar.bz2 |
[clang] Use llvm::unique (NFC) (#136469)
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r-- | clang/lib/Format/Format.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 0667813..5a1c3f5 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -3244,11 +3244,11 @@ static void sortCppIncludes(const FormatStyle &Style, } // Deduplicate #includes. - Indices.erase(std::unique(Indices.begin(), Indices.end(), - [&](unsigned LHSI, unsigned RHSI) { - return Includes[LHSI].Text.trim() == - Includes[RHSI].Text.trim(); - }), + Indices.erase(llvm::unique(Indices, + [&](unsigned LHSI, unsigned RHSI) { + return Includes[LHSI].Text.trim() == + Includes[RHSI].Text.trim(); + }), Indices.end()); int CurrentCategory = Includes.front().Category; @@ -3476,10 +3476,10 @@ static void sortJavaImports(const FormatStyle &Style, }); // Deduplicate imports. - Indices.erase(std::unique(Indices.begin(), Indices.end(), - [&](unsigned LHSI, unsigned RHSI) { - return Imports[LHSI].Text == Imports[RHSI].Text; - }), + Indices.erase(llvm::unique(Indices, + [&](unsigned LHSI, unsigned RHSI) { + return Imports[LHSI].Text == Imports[RHSI].Text; + }), Indices.end()); bool CurrentIsStatic = Imports[Indices.front()].IsStatic; |