AlemSnyder / Fun-Game

I am just practicing c++. Feal free to enjoy.
GNU General Public License v2.0
1 stars 0 forks source link

Linting (clang-tidy) #35

Closed egelja closed 1 year ago

AlemSnyder commented 1 year ago

invalid preprocessing directiveC/C++(clang-diagnostic-error) on #cmakedefine01 DEBUG()

float128 is not supported on this target Clang does not support float128, but we are not using clang to compile.

egelja commented 1 year ago

invalid preprocessing directiveC/C++(clang-diagnostic-error) on #cmakedefine01 DEBUG()

Yea it's right here, this is done by CMake

float128 is not supported on this target Clang does not support float128, but we are not using clang to compile.

No this is a bug in VSCode's extension: https://github.com/microsoft/vscode-cpptools/issues/9198 And it just shows the error but still works.

AlemSnyder commented 1 year ago

Saying "I know it's buggy" is not a reason to use buggy code.

In any case clang-tity breaks, and ends up using 30% of my cpu for ~2 hours. I won't be using it.