File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1190,20 +1190,20 @@ void Parser::ProcessPluginSyntax(ParsingDeclarator &D) {
1190
1190
return ;
1191
1191
}
1192
1192
1193
- // Provide the token stream to the plugin and get back the replacement text.
1194
1193
1195
1194
std::string Replacement;
1196
1195
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();.
1198
1198
ReplacementOS << " \n {\n " ;
1199
1199
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.
1202
1202
SHI->second ->GetReplacement (PP, D, Toks, ReplacementOS);
1203
1203
ReplacementOS.flush ();
1204
1204
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.
1207
1207
1208
1208
std::string NewName;
1209
1209
NewName =" __" + D.getIdentifier ()->getName ().str ();
You can’t perform that action at this time.
0 commit comments