fno-char8_t
argument is ignored from compile commands
#12968
Labels
bug
Feature: Configuration
An issue related to configuring the extension or IntelliSense
Language Service
quick fix
Milestone
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
An option exists on clang (there is an equivalent on msvc with
/Zc:char8_t-
) removing thechar8_t
type from the language in C++20. It is controlled in clang by the-fno-char8_t
argument.When using compile commands, with this argument and
--std=c++20
present in the command, the parsing seems to ignore the-fno-char8_t
, leading to Intellisense errors.When looking for duplicates, I found #12106, but given the explanation, it seems that every argument is parsed, even if not needed so it doesn't related to this issue.
Steps to reproduce:
-fno-char8_t
and--std=c++20
in the command, as below:u8
, indicating that argumentconst char8_t*
is incompatible withconst char*
Expected behavior:
The parsing should take account of the
-fno-char8_t
to give it correctly to the parser. On a side note, the argument is not given either to clang-tidy, leading to other errors related to it.Configuration and Logs
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: