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

set C++14 as default #2203

Merged
merged 1 commit into from
Jun 20, 2021
Merged

set C++14 as default #2203

merged 1 commit into from
Jun 20, 2021

Conversation

guwirth
Copy link
Collaborator

@guwirth guwirth commented Jun 20, 2021

  • set predefined macro value of __cplusplus to 201402L (C++14)
  • MsBuild sensor:
    • set default platform toolset to V142
    • set default C++ standard for VC2019 to C++14

This change is Reviewable

- `__cplusplus=201402L`
- MsBuild sensor:
  - set default platform toolset to V142
  - set default C++ standard for VC2019 to C++14
@guwirth guwirth added this to the 2.0.4 milestone Jun 20, 2021
@guwirth guwirth self-assigned this Jun 20, 2021
@guwirth guwirth merged commit f00c2b8 into SonarOpenCommunity:master Jun 20, 2021
@johan-boule
Copy link

Can we override it with sonar.cxx.defines ?

@guwirth
Copy link
Collaborator Author

guwirth commented Jan 7, 2022

Hello @johan-boule, yes with sonar.cxx.defines you can override predefined macros. Regards

@guwirth guwirth deleted the cpp14 branch July 26, 2022 09:04
@guwirth guwirth restored the cpp14 branch July 26, 2022 09:14
@guwirth guwirth deleted the cpp14 branch February 8, 2023 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants