[clang] [OpenCL] Add warning for reserved 'long long' type (PR #196002)

Wenju He via cfe-commits cfe-commits at lists.llvm.org
Wed May 6 02:04:59 PDT 2026


================
@@ -1041,8 +1041,10 @@ static QualType ConvertDeclSpecToType(TypeProcessingState &state) {
       case TypeSpecifierWidth::LongLong:
         Result = Context.LongLongTy;
 
-        // 'long long' is a C99 or C++11 feature.
-        if (!S.getLangOpts().C99) {
+        if (S.getLangOpts().OpenCL) {
----------------
wenju-he wrote:

done

https://github.com/llvm/llvm-project/pull/196002


More information about the cfe-commits mailing list