summaryrefslogtreecommitdiffstats
path: root/clang/utils/TableGen/ClangAttrEmitter.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-09-30 21:41:11 +0000
committerFangrui Song <maskray@google.com>2018-09-30 21:41:11 +0000
commit1d38c13f6e22889624df47b74bf058cf1864b392 (patch)
treeec14ba7c7bbc589249302106ae612aa0520351d4 /clang/utils/TableGen/ClangAttrEmitter.cpp
parentf21083870d1c20b2fd51b08c397ae7da13bd6341 (diff)
downloadbcm5719-llvm-1d38c13f6e22889624df47b74bf058cf1864b392.tar.gz
bcm5719-llvm-1d38c13f6e22889624df47b74bf058cf1864b392.zip
Use the container form llvm::sort(C, ...)
There are a few leftovers of rC343147 that are not (\w+)\.begin but in the form of ([-[:alnum:]>.]+)\.begin or spanning two lines. Change them to use the container form in this commit. The 12 occurrences have been inspected manually for safety. llvm-svn: 343425
Diffstat (limited to 'clang/utils/TableGen/ClangAttrEmitter.cpp')
-rw-r--r--clang/utils/TableGen/ClangAttrEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/utils/TableGen/ClangAttrEmitter.cpp b/clang/utils/TableGen/ClangAttrEmitter.cpp
index 5386ea6c317..59eab397733 100644
--- a/clang/utils/TableGen/ClangAttrEmitter.cpp
+++ b/clang/utils/TableGen/ClangAttrEmitter.cpp
@@ -3961,10 +3961,10 @@ void EmitClangAttrDocs(RecordKeeper &Records, raw_ostream &OS) {
for (auto &I : SplitDocs) {
WriteCategoryHeader(I.first, OS);
- llvm::sort(I.second.begin(), I.second.end(),
+ llvm::sort(I.second,
[](const DocumentationData &D1, const DocumentationData &D2) {
return D1.Heading < D2.Heading;
- });
+ });
// Walk over each of the attributes in the category and write out their
// documentation.
OpenPOWER on IntegriCloud