This is an archive of the discontinued LLVM Phabricator instance.

StringLiteral: intellisense workaround
AbandonedPublic

Authored by lawrence_danna on Sep 19 2019, 9:07 PM.

Details

Summary

The intellisense parser from Visual Studio Code will pretend to be
clang by defining __clang__, but it doesn't fully implement enable_if.
It does define __INTELLISENSE__ however, so we can avoid spurious
errors by also checking for that.

https://github.com/microsoft/vscode-cpptools/issues/4246

Event Timeline

lawrence_danna created this revision.Sep 19 2019, 9:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 19 2019, 9:07 PM
Herald added a subscriber: dexonsmith. · View Herald Transcript
lawrence_danna edited the summary of this revision. (Show Details)Sep 19 2019, 9:08 PM
JDevlieghere requested changes to this revision.Sep 20 2019, 11:10 AM

Although this makes sense as a local workaround I'm not convinced this is worth checking in.

This revision now requires changes to proceed.Sep 20 2019, 11:10 AM