@@ -181,65 +181,63 @@ void ExpandModularHeadersPPCallbacks::EndOfMainFile() {
181181// Handle all other callbacks.
182182// Just parse to the corresponding location to generate the same callback for
183183// the PPCallbacks registered in our custom preprocessor.
184- void ExpandModularHeadersPPCallbacks::Ident (SourceLocation Loc, StringRef) {
184+ void ExpandModularHeadersPPCallbacks::Ident (SourceLocation Loc,
185+ StringRef /* str*/ ) {
185186 parseToLocation (Loc);
186187}
187- void ExpandModularHeadersPPCallbacks::PragmaDirective (SourceLocation Loc,
188- PragmaIntroducerKind) {
188+ void ExpandModularHeadersPPCallbacks::PragmaDirective (
189+ SourceLocation Loc, PragmaIntroducerKind /* Introducer */ ) {
189190 parseToLocation (Loc);
190191}
191- void ExpandModularHeadersPPCallbacks::PragmaComment (SourceLocation Loc,
192- const IdentifierInfo *,
193- StringRef) {
192+ void ExpandModularHeadersPPCallbacks::PragmaComment (
193+ SourceLocation Loc, const IdentifierInfo * /* Kind*/ , StringRef /* Str*/ ) {
194194 parseToLocation (Loc);
195195}
196- void ExpandModularHeadersPPCallbacks::PragmaDetectMismatch (SourceLocation Loc,
197- StringRef,
198- StringRef) {
196+ void ExpandModularHeadersPPCallbacks::PragmaDetectMismatch (
197+ SourceLocation Loc, StringRef /* Name*/ , StringRef /* Value*/ ) {
199198 parseToLocation (Loc);
200199}
201200void ExpandModularHeadersPPCallbacks::PragmaDebug (SourceLocation Loc,
202- StringRef) {
201+ StringRef /* DebugType */ ) {
203202 parseToLocation (Loc);
204203}
205204void ExpandModularHeadersPPCallbacks::PragmaMessage (SourceLocation Loc,
206- StringRef,
207- PragmaMessageKind,
208- StringRef) {
205+ StringRef /* Namespace */ ,
206+ PragmaMessageKind /* Kind */ ,
207+ StringRef /* Str */ ) {
209208 parseToLocation (Loc);
210209}
211- void ExpandModularHeadersPPCallbacks::PragmaDiagnosticPush (SourceLocation Loc,
212- StringRef) {
210+ void ExpandModularHeadersPPCallbacks::PragmaDiagnosticPush (
211+ SourceLocation Loc, StringRef /* Namespace */ ) {
213212 parseToLocation (Loc);
214213}
215- void ExpandModularHeadersPPCallbacks::PragmaDiagnosticPop (SourceLocation Loc,
216- StringRef) {
214+ void ExpandModularHeadersPPCallbacks::PragmaDiagnosticPop (
215+ SourceLocation Loc, StringRef /* Namespace */ ) {
217216 parseToLocation (Loc);
218217}
219- void ExpandModularHeadersPPCallbacks::PragmaDiagnostic (SourceLocation Loc,
220- StringRef,
221- diag::Severity,
222- StringRef) {
218+ void ExpandModularHeadersPPCallbacks::PragmaDiagnostic (
219+ SourceLocation Loc, StringRef /* Namespace*/ , diag::Severity /* mapping*/ ,
220+ StringRef /* Str*/ ) {
223221 parseToLocation (Loc);
224222}
225- void ExpandModularHeadersPPCallbacks::HasInclude (SourceLocation Loc, StringRef,
226- bool , OptionalFileEntryRef ,
227- SrcMgr::CharacteristicKind) {
223+ void ExpandModularHeadersPPCallbacks::HasInclude (
224+ SourceLocation Loc, StringRef /* FileName */ , bool /* IsAngled */ ,
225+ OptionalFileEntryRef /* File */ , SrcMgr::CharacteristicKind /* FileType */ ) {
228226 parseToLocation (Loc);
229227}
230228void ExpandModularHeadersPPCallbacks::PragmaOpenCLExtension (
231- SourceLocation NameLoc, const IdentifierInfo *, SourceLocation StateLoc ,
232- unsigned ) {
229+ SourceLocation NameLoc, const IdentifierInfo * /* Name */ ,
230+ SourceLocation StateLoc, unsigned /* State */ ) {
233231 // FIXME: Figure out whether it's the right location to parse to.
234232 parseToLocation (NameLoc);
235233}
236- void ExpandModularHeadersPPCallbacks::PragmaWarning (SourceLocation Loc,
237- PragmaWarningSpecifier,
238- ArrayRef<int >) {
234+ void ExpandModularHeadersPPCallbacks::PragmaWarning (
235+ SourceLocation Loc, PragmaWarningSpecifier /* WarningSpec */ ,
236+ ArrayRef<int > /* Ids */ ) {
239237 parseToLocation (Loc);
240238}
241239void ExpandModularHeadersPPCallbacks::PragmaWarningPush (SourceLocation Loc,
242- int ) {
240+ int /* Level */ ) {
243241 parseToLocation (Loc);
244242}
245243void ExpandModularHeadersPPCallbacks::PragmaWarningPop (SourceLocation Loc) {
@@ -253,10 +251,9 @@ void ExpandModularHeadersPPCallbacks::PragmaAssumeNonNullEnd(
253251 SourceLocation Loc) {
254252 parseToLocation (Loc);
255253}
256- void ExpandModularHeadersPPCallbacks::MacroExpands (const Token &MacroNameTok,
257- const MacroDefinition &,
258- SourceRange Range,
259- const MacroArgs *) {
254+ void ExpandModularHeadersPPCallbacks::MacroExpands (
255+ const Token &MacroNameTok, const MacroDefinition & /* MD*/ ,
256+ SourceRange Range, const MacroArgs * /* Args*/ ) {
260257 // FIXME: Figure out whether it's the right location to parse to.
261258 parseToLocation (Range.getBegin ());
262259}
@@ -265,12 +262,13 @@ void ExpandModularHeadersPPCallbacks::MacroDefined(const Token &MacroNameTok,
265262 parseToLocation (MD->getLocation ());
266263}
267264void ExpandModularHeadersPPCallbacks::MacroUndefined (
268- const Token &, const MacroDefinition &, const MacroDirective *Undef) {
265+ const Token & /* MacroNameTok*/ , const MacroDefinition & /* MD*/ ,
266+ const MacroDirective *Undef) {
269267 if (Undef)
270268 parseToLocation (Undef->getLocation ());
271269}
272270void ExpandModularHeadersPPCallbacks::Defined (const Token &MacroNameTok,
273- const MacroDefinition &,
271+ const MacroDefinition & /* MD */ ,
274272 SourceRange Range) {
275273 // FIXME: Figure out whether it's the right location to parse to.
276274 parseToLocation (Range.getBegin ());
@@ -280,27 +278,32 @@ void ExpandModularHeadersPPCallbacks::SourceRangeSkipped(
280278 // FIXME: Figure out whether it's the right location to parse to.
281279 parseToLocation (EndifLoc);
282280}
283- void ExpandModularHeadersPPCallbacks::If (SourceLocation Loc, SourceRange,
284- ConditionValueKind) {
281+ void ExpandModularHeadersPPCallbacks::If (
282+ SourceLocation Loc, SourceRange /* ConditionRange*/ ,
283+ ConditionValueKind /* ConditionValue*/ ) {
285284 parseToLocation (Loc);
286285}
287- void ExpandModularHeadersPPCallbacks::Elif (SourceLocation Loc, SourceRange,
288- ConditionValueKind, SourceLocation) {
286+ void ExpandModularHeadersPPCallbacks::Elif (
287+ SourceLocation Loc, SourceRange /* ConditionRange*/ ,
288+ ConditionValueKind /* ConditionValue*/ , SourceLocation /* IfLoc*/ ) {
289289 parseToLocation (Loc);
290290}
291- void ExpandModularHeadersPPCallbacks::Ifdef (SourceLocation Loc, const Token &,
292- const MacroDefinition &) {
291+ void ExpandModularHeadersPPCallbacks::Ifdef (SourceLocation Loc,
292+ const Token & /* MacroNameTok*/ ,
293+ const MacroDefinition & /* MD*/ ) {
293294 parseToLocation (Loc);
294295}
295- void ExpandModularHeadersPPCallbacks::Ifndef (SourceLocation Loc, const Token &,
296- const MacroDefinition &) {
296+ void ExpandModularHeadersPPCallbacks::Ifndef (SourceLocation Loc,
297+ const Token & /* MacroNameTok*/ ,
298+ const MacroDefinition & /* MD*/ ) {
297299 parseToLocation (Loc);
298300}
299- void ExpandModularHeadersPPCallbacks::Else (SourceLocation Loc, SourceLocation) {
301+ void ExpandModularHeadersPPCallbacks::Else (SourceLocation Loc,
302+ SourceLocation /* IfLoc*/ ) {
300303 parseToLocation (Loc);
301304}
302305void ExpandModularHeadersPPCallbacks::Endif (SourceLocation Loc,
303- SourceLocation) {
306+ SourceLocation /* IfLoc */ ) {
304307 parseToLocation (Loc);
305308}
306309
0 commit comments