[libcxx-commits] [libcxx] [clang] Correct end for the `CastOperation.OpRange` (PR #69480)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Oct 24 05:29:50 PDT 2023
Botond =?utf-8?q?István_Horváth?=,
Botond =?utf-8?q?István_Horváth?Message-ID:
In-Reply-To: <llvm/llvm-project/pull/69480/libcxx at github.com>
================
@@ -1,7 +1,13 @@
-// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-print-source-range-info %s 2>&1 | FileCheck %s
+// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-print-source-range-info -Wcast-function-type-strict %s 2>&1 | FileCheck %s
struct S {
char a : 12 - 12;
};
// CHECK: misc-source-ranges.cpp:[[@LINE-2]]:8:{[[@LINE-2]]:12-[[@LINE-2]]:19}
+using fun = long(*)(int&);
+fun foo(){
+ long (*f_ptr)(const int&);
----------------
whisperity wrote:
```suggestion
long (*f_ptr)(const int &);
```
Format.
https://github.com/llvm/llvm-project/pull/69480
More information about the libcxx-commits
mailing list