llvm-project/clang/lib/Index
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
..
CMakeLists.txt Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00
CommentToXML.cpp clang-format: [JS] Support regex literals with trailing escaped slash. 2014-09-09 14:37:39 +00:00
Makefile Rename libIDE to libIndex. 2013-08-17 00:40:41 +00:00
SimpleFormatContext.h Overload SourceManager::overrideFileContents so that unconditionally passing ownership is explicitly done using unique_ptr. 2014-08-27 20:54:45 +00:00
USRGeneration.cpp Added the pack_elements range accessor. Refactoring some for loops to use range-based for loops instead. No functional changes intended. 2014-07-15 21:32:31 +00:00