Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SLVS-1717 Fix C++ Language standard recognition when a C language standard is also specified #5948

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

georgii-borovinskikh-sonarsource
Copy link
Contributor

@georgii-borovinskikh-sonarsource georgii-borovinskikh-sonarsource commented Jan 10, 2025

  • Only set one language standard for the file
  • Always set either /TC or /TP flag for the file (/TC for C and /TP for CPP)
  • Assume the file is C if CompileAsC or if not CompileAsCpp and vcFile.ContentType is CCode
  • Assume the file is CPP otherwise

…ndard is also specified

* Only set one language standard for the file
* Always set either /TC or /TP flag for the file (/TC for C and /TP for CPP)
* Assume the file is C if CompileAs == CompileAsC or if CompileAs != CompileAsCpp and vcFile.ContentType == CCode
* ASsume the file is CPP otherwise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant