Skip to content

Commit ed39290

Browse files
author
Tobi Popoola
committed
Fixed comments to follow standard
1 parent 8fcc686 commit ed39290

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

clang/lib/Parse/Parser.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -1190,20 +1190,20 @@ void Parser::ProcessPluginSyntax(ParsingDeclarator &D) {
11901190
return;
11911191
}
11921192

1193-
// Provide the token stream to the plugin and get back the replacement text.
11941193

11951194
std::string Replacement;
11961195
llvm::raw_string_ostream ReplacementOS(Replacement);
1197-
1196+
// Function to be forgotten left empty. Could result to warnings,
1197+
// possible solution is to user __builtin_unreachable();.
11981198
ReplacementOS << "\n{\n";
11991199
ReplacementOS << "\n}\n";
1200-
// provide token stream to the plugin and get back replacement text
1201-
// but place them just outside the function body been replaced
1200+
1201+
// Provide the token stream to the plugin and get back the replacement text.
12021202
SHI->second->GetReplacement(PP, D, Toks, ReplacementOS);
12031203
ReplacementOS.flush();
12041204

1205-
//Now we change the identifier name in the declarator to forget
1206-
//the original function
1205+
// Change the identifier name in the declarator to forget
1206+
// the original function.
12071207

12081208
std::string NewName;
12091209
NewName ="__"+ D.getIdentifier()->getName().str();

0 commit comments

Comments
 (0)