File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -749,8 +749,18 @@ and { return cpp98_keyword(TOK_ANDAND); }
749749and_eq { return cpp98_keyword (TOK_ANDASSIGN); }
750750bool { return cpp98_keyword (TOK_BOOL); }
751751catch { return cpp98_keyword (TOK_CATCH); }
752- char16_t { return cpp11_keyword (TOK_CHAR16_T); } // C++11
753- char32_t { return cpp11_keyword (TOK_CHAR32_T); } // C++11
752+ char16_t { // C++11, but Visual Studio uses typedefs
753+ if (PARSER.mode == configt::ansi_ct::flavourt::VISUAL_STUDIO)
754+ return make_identifier ();
755+ else
756+ return cpp11_keyword (TOK_CHAR16_T);
757+ }
758+ char32_t { // C++11, but Visual Studio uses typedefs
759+ if (PARSER.mode == configt::ansi_ct::flavourt::VISUAL_STUDIO)
760+ return make_identifier ();
761+ else
762+ return cpp11_keyword (TOK_CHAR32_T);
763+ }
754764class { return cpp98_keyword (TOK_CLASS); }
755765compl { return cpp98_keyword (' ~' ); }
756766constexpr { return cpp11_keyword (TOK_CONSTEXPR); } // C++11
You can’t perform that action at this time.
0 commit comments