================
@@ -742,6 +742,10 @@ class LangOptions : public LangOptionsBase {
            DefaultVisiblityExportMapping::All;
   }
 
+  bool IsCLanguageOnly() const {
+    return ((C99 || C11 || C17 || C23 || C2y) && !ObjC && !OpenMP);
----------------
erichkeane wrote:

instead of the first
```suggestion
    return (!CPlusPlus && !ObjC && !OpenMP);
```

https://github.com/llvm/llvm-project/pull/173394
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to