-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Open
Labels
clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer
Description
I am unable to suppress note level information in the compiler output.
Is this intended functionality or am I missing something?
Often, the fix is represented clearly by the preceding error.
As this is a note, I don't think that the -w flag has any control over the output.
Log:
/usr/bin/clang++ -Itest/matrix.p -Itest -I../test -I../include -I../external -I/usr/include/stb -I/usr/include/freetype2 -I/usr/include/libpng16 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -std=c++20 -O0 -g -Wno-unused-variable -ferror-limit=1 -w -DGTEST_HAS_PTHREAD=1 -MD -MQ test/matrix.p/test_Matrix4x4.cc.o -MF test/matrix.p/test_Matrix4x4.cc.o.d -o test/matrix.p/test_Matrix4x4.cc.o -c ../test/test_Matrix4x4.cc
../test/test_Matrix4x4.cc:24:25: error: constexpr variable 'C' must be initialized by a constant expression
24 | constexpr Matrix4x4 C = A-B;
| ^ ~~~
../include/Matrix4x4.h:88:47: note: non-constexpr function 'operator[]' cannot be used in a constant expression
88 | matrix[i][j] = matrix[i][j] - B[i][j];
| ^
../include/Matrix4x4.h:180:5: note: in call to 'result.operator-=(B)'
180 | result -= B;
| ^~~~~~~~~~~
I am having to scroll a lot to get to the root of an issue.
Flufy-Nurbs
Metadata
Metadata
Assignees
Labels
clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer