================
@@ -1134,6 +1134,14 @@ void UnwrappedLineParser::parsePPDefine() {
     return;
   }
 
+  if (Style.IgnorePPDefinitions) {
+    do {
+      nextToken();
+    } while (!eof());
----------------
HazardyKnusperkeks wrote:

I assume you have tested this on real code. Can you explain why it is okay to 
check for `eof()`? I really don't know this code, and am a bit surprised.

https://github.com/llvm/llvm-project/pull/70338
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to