hanchenye-llvm-project/clang/tools
Daniel Jasper 23376259c0 clang-format: [JS] Support regex literals with trailing escaped slash.
Before:
  var regex = / a\//; int i;

After:
  var regex = /a\//;
  int i;

This required pushing the Lexer into its wrapper class and generating a
new one in this specific case. Otherwise, the sequence get lexed as a
//-comment. This is hacky, but I don't know a better way (short of
supporting regex literals in the Lexer).

Pushing the Lexer down seems to make all the call sites simpler.

llvm-svn: 217444
2014-09-09 14:37:39 +00:00
..
arcmt-test Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00
c-arcmt-test Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00
c-index-test Fix a memory leak in one of the test unit. Silent coverity warning CID 1095912 2014-08-18 15:18:56 +00:00
clang-check Modify behavior of -ast-dump-lookups: if -ast-dump is not also provided, dump 2014-08-11 22:11:07 +00:00
clang-format clang-format: [JS] Support regex literals with trailing escaped slash. 2014-09-09 14:37:39 +00:00
clang-format-vs Update build instructions for the clang-format VS plugin 2014-08-01 17:38:53 +00:00
diag-build Briefly document diag-build.sh 2013-12-28 21:59:11 +00:00
diagtool Use llvm::makeArrayRef instead of explicitly calling ArrayRef constructor and mentioning the type. This works now that we have a conversion from ArrayRef<T*> to ArrayRef<const T*>. 2014-08-30 16:55:39 +00:00
driver Use llvm::makeArrayRef instead of explicitly calling ArrayRef constructor and mentioning the type. This works now that we have a conversion from ArrayRef<T*> to ArrayRef<const T*>. 2014-08-30 16:55:39 +00:00
libclang unique_ptrify the diagnostics in CXDiagnosticSetImpl 2014-08-29 18:43:24 +00:00
scan-build Fix a bug when scan-build is used in a cross-compilation environment with 2014-08-08 17:15:13 +00:00
scan-view [analyzer] scan-view: don't ever serve absolute paths. 2013-04-29 17:23:06 +00:00
CMakeLists.txt Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00
Makefile Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00