thakis added inline comments. ================ Comment at: lib/Format/Format.cpp:1735 @@ -1734,3 +1734,3 @@ llvm::Regex IncludeRegex( - R"(^[\t\ ]*#[\t\ ]*include[^"<]*(["<][^">]*[">]))"); + R"(^[\t\ ]*#[\t\ ]*(import|include)[^"<]*(["<][^">]*[">]))"); SmallVector<StringRef, 4> Matches; ---------------- llvm's Regex class doesn't support non-capturing groups (`(?:foo|bar)`) as far as I can tell, so I changed Matches[1] to Matches[2] below.
http://reviews.llvm.org/D13853 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits