Skip to content

Commit fc82004

Browse files
committed
fix formatting
1 parent b7daaed commit fc82004

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

clang-tools-extra/clang-doc/BitcodeWriter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ static const std::vector<std::pair<BlockId, std::vector<RecordId>>>
224224
// FieldType Block
225225
{BI_FIELD_TYPE_BLOCK_ID, {FIELD_TYPE_NAME, FIELD_DEFAULT_VALUE}},
226226
// MemberType Block
227-
{BI_MEMBER_TYPE_BLOCK_ID, {MEMBER_TYPE_NAME, MEMBER_TYPE_ACCESS, MEMBER_TYPE_IS_STATIC}},
227+
{BI_MEMBER_TYPE_BLOCK_ID,
228+
{MEMBER_TYPE_NAME, MEMBER_TYPE_ACCESS, MEMBER_TYPE_IS_STATIC}},
228229
// Enum Block
229230
{BI_ENUM_BLOCK_ID,
230231
{ENUM_USR, ENUM_NAME, ENUM_DEFLOCATION, ENUM_LOCATION, ENUM_SCOPED}},

clang-tools-extra/clang-doc/HTMLGenerator.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ genRecordMembersBlock(const llvm::SmallVector<MemberTypeInfo, 4> &Members,
419419
std::string Access = getAccessSpelling(M.Access).str();
420420
if (Access != "")
421421
Access = Access + " ";
422-
if(M.IsStatic)
422+
if (M.IsStatic)
423423
Access += "static ";
424424
auto LIBody = std::make_unique<TagNode>(HTMLTag::TAG_LI);
425425
auto MemberDecl = std::make_unique<TagNode>(HTMLTag::TAG_DIV);
@@ -742,10 +742,10 @@ genHTML(const FunctionInfo &I, const ClangDocContext &CDCtx,
742742
if (Access != "")
743743
FunctionHeader->Children.emplace_back(
744744
std::make_unique<TextNode>(Access + " "));
745-
if(I.IsStatic)
745+
if (I.IsStatic)
746746
FunctionHeader->Children.emplace_back(
747747
std::make_unique<TextNode>("static "));
748-
else{
748+
else {
749749
llvm::errs() << I.Name << " is not static\n";
750750
}
751751
if (I.ReturnType.Type.Name != "") {

clang-tools-extra/clang-doc/Serialize.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,6 @@ emitInfo(const RecordDecl *D, const FullComment *FC, int LineNumber,
743743
return {std::move(I), std::move(Parent)};
744744
}
745745

746-
747746
std::pair<std::unique_ptr<Info>, std::unique_ptr<Info>>
748747
emitInfo(const FunctionDecl *D, const FullComment *FC, int LineNumber,
749748
llvm::StringRef File, bool IsFileInRootDir, bool PublicOnly) {

0 commit comments

Comments
 (0)