Skip to content

Commit 3f05ad0

Browse files
committed
Adjust style
1 parent 661bf10 commit 3f05ad0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clang/include/clang/Basic/Attr.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Documentation {
5656
// specify a replacement attribute.
5757
DocDeprecated Deprecated;
5858

59-
// When set, specifies a label that can be used to reference the documentation
59+
// When set, specifies a label that can be used to reference the documentation.
6060
string Label = "";
6161
}
6262

clang/utils/TableGen/ClangAttrEmitter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5178,9 +5178,9 @@ GetAttributeHeadingAndSpellings(const Record &Documentation,
51785178

51795179
static void WriteDocumentation(const RecordKeeper &Records,
51805180
const DocumentationData &Doc, raw_ostream &OS) {
5181-
if (const StringRef label = Doc.Documentation->getValueAsString("Label");
5182-
!label.empty())
5183-
OS << ".. _" << label << ":\n\n";
5181+
if (const StringRef Label = Doc.Documentation->getValueAsString("Label");
5182+
!Label.empty())
5183+
OS << ".. _" << Label << ":\n\n";
51845184
OS << Doc.Heading << "\n" << std::string(Doc.Heading.length(), '-') << "\n";
51855185

51865186
// List what spelling syntaxes the attribute supports.

0 commit comments

Comments
 (0)