This patch detects the leading '<' in likely xml files and stops formatting in
that case. A recent use of a Qt xml file with a .ts extension triggered this:
http://doc.qt.io/qt-4.8/linguist-ts-file-format.html
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Just a few minor comments, otherwise looks good.
| lib/Format/Format.cpp | ||
|---|---|---|
| 1542 ↗ | (On Diff #112669) | Rename to isLikelyXml. |
| 1552 ↗ | (On Diff #112669) | Just add a separate if statement. Or merge with previous one, but I think three separate if statements is actually easiest to read. |
| 1902 ↗ | (On Diff #112669) | Same here. |