Add detection of C++ standard argument specified in tasks.json
Add fix #11828
@microsoft-github-policy-service agree
@jackielwu I don't think this change is necessary. When -std=gnu++14 -std=c++20 is used the 2nd argument overrides the 1st argument, so the existence of the 1st argument should not matter.
@sean-mcmanus Does this behavior apply to both llvm clang and Apple clang? What if the user specifies an earlier standard (e.g. -std=gnu++14 -std=c++11)?
@sean-mcmanus Does this behavior apply to both llvm clang and Apple clang? What if the user specifies an earlier standard (e.g.
-std=gnu++14 -std=c++11)?
Yes, that applies to LLVM and Apple clang and the last/right-most "-std" gets used regardless of if it's earlier or newer.
I don't believe this is needed. I'm not able to repro an issue from https://github.com/microsoft/vscode-cpptools/issues/11828 , and suspect that issue is user-error.
Thank you for the update! If there's anything else I can assist with, please let me know.
Best, [Your Name] https://gpt.space/gmail?source=watermark On Fri, Feb 09, 2024 11:16 PM, @.*** wrote:
@.**** approved this pull request.
— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode-cpptools/pull/11829#pullrequestreview-1871643881, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBJ7LML6H5DUSY2HJZBGLA3YSWSE5AVCNFSM6AAAAABBLAZBDSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQNZRGY2DGOBYGE . You are receiving this because you are subscribed to this thread.Message ID: @.***>