[PATCH] D93031: Enable fexec-charset option
Abhina Sree via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 15 08:22:06 PST 2020
abhina.sreeskantharajan updated this revision to Diff 311911.
abhina.sreeskantharajan added a comment.
Thanks for your quick reviews! I haven't addressed all the comments yet but I plan to address all of them. I put up this patch early because it has a few major changes:
- moves LiteralTranslator class to Preprocessor instead of being a static global class
- add isUTFLiteral() function to detect strings like u8"..." and stop translation
- translate wide string literals to the system charset for now (we don't have an implementation plan for -fwide-charset right now)
- remove tests that check fexec-charset will not accept non-UTF charsets
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93031/new/
https://reviews.llvm.org/D93031
Files:
clang/include/clang/Basic/LangOptions.h
clang/include/clang/Basic/TokenKinds.h
clang/include/clang/Driver/Options.td
clang/include/clang/Lex/LiteralSupport.h
clang/include/clang/Lex/LiteralTranslator.h
clang/include/clang/Lex/Preprocessor.h
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Frontend/CompilerInstance.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Lex/CMakeLists.txt
clang/lib/Lex/LiteralSupport.cpp
clang/lib/Lex/LiteralTranslator.cpp
clang/lib/Lex/Preprocessor.cpp
clang/test/CodeGen/systemz-charset.c
clang/test/Driver/cl-options.c
clang/test/Driver/clang_f_opts.c
llvm/include/llvm/ADT/Triple.h
llvm/lib/Support/Triple.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93031.311911.patch
Type: text/x-patch
Size: 27269 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201215/480c3bfd/attachment-0001.bin>
More information about the cfe-commits
mailing list