Change Lexer::MeasureTokenLength to take a LangOptions reference.
This allows it to accurately measure tokens, so that we get:

t.cpp:8:13: error: unknown type name 'X'
static foo::X  P;
       ~~~~~^

instead of the woefully inferior:

t.cpp:8:13: error: unknown type name 'X'
static foo::X  P;
       ~~~~ ^

Most of this is just plumbing to push the reference around.

llvm-svn: 69099
diff --git a/clang/tools/clang-cc/HTMLPrint.cpp b/clang/tools/clang-cc/HTMLPrint.cpp
index b2bb29c..0e15973 100644
--- a/clang/tools/clang-cc/HTMLPrint.cpp
+++ b/clang/tools/clang-cc/HTMLPrint.cpp
@@ -52,7 +52,7 @@
 }
 
 void HTMLPrinter::Initialize(ASTContext &context) {
-  R.setSourceMgr(context.getSourceManager());
+  R.setSourceMgr(context.getSourceManager(), context.getLangOptions());
 }
 
 HTMLPrinter::~HTMLPrinter() {