summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-09-14 01:55:42 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-09-14 01:55:42 +0000
commit8108d3c563959c4c9bfafedd2993b5eca4ea5a8d (patch)
tree00ca466e3aa5749ae5d8de8ab9264feaa316364e /utils
parentb7ad5ad5f8efc93d1838f99ae173455857b93225 (diff)
[docs] Order diagnostic cross-references alphabetically rather than based on
order in the .td file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281434 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/ClangDiagnosticsEmitter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/TableGen/ClangDiagnosticsEmitter.cpp b/utils/TableGen/ClangDiagnosticsEmitter.cpp
index 58a53b6470..9c9739a959 100644
--- a/utils/TableGen/ClangDiagnosticsEmitter.cpp
+++ b/utils/TableGen/ClangDiagnosticsEmitter.cpp
@@ -1310,6 +1310,7 @@ void EmitClangDiagDocs(RecordKeeper &Records, raw_ostream &OS) {
OS << "Also controls ";
bool First = true;
+ std::sort(GroupInfo.SubGroups.begin(), GroupInfo.SubGroups.end());
for (const auto &Name : GroupInfo.SubGroups) {
if (!First) OS << ", ";
OS << "`" << (IsRemarkGroup ? "-R" : "-W") << Name << "`_";