SourceMgr.h (208954) | SourceMgr.h (212904) |
---|---|
1//===- SourceMgr.h - Manager for Source Buffers & Diagnostics ---*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 147 unchanged lines hidden (view full) --- 156 unsigned ShowLine : 1; 157 158public: 159 // Null diagnostic. 160 SMDiagnostic() : SM(0), LineNo(0), ColumnNo(0), ShowLine(0) {} 161 // Diagnostic with no location (e.g. file not found, command line arg error). 162 SMDiagnostic(const std::string &filename, const std::string &Msg, 163 bool showline = true) | 1//===- SourceMgr.h - Manager for Source Buffers & Diagnostics ---*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 147 unchanged lines hidden (view full) --- 156 unsigned ShowLine : 1; 157 158public: 159 // Null diagnostic. 160 SMDiagnostic() : SM(0), LineNo(0), ColumnNo(0), ShowLine(0) {} 161 // Diagnostic with no location (e.g. file not found, command line arg error). 162 SMDiagnostic(const std::string &filename, const std::string &Msg, 163 bool showline = true) |
164 : SM(0), Loc(), Filename(filename), LineNo(-1), ColumnNo(-1), 165 Message(Msg), LineContents(""), ShowLine(showline) {} | 164 : SM(0), Filename(filename), LineNo(-1), ColumnNo(-1), 165 Message(Msg), ShowLine(showline) {} |
166 167 // Diagnostic with a location. 168 SMDiagnostic(const SourceMgr &sm, SMLoc L, const std::string &FN, 169 int Line, int Col, 170 const std::string &Msg, const std::string &LineStr, 171 bool showline = true) 172 : SM(&sm), Loc(L), Filename(FN), LineNo(Line), ColumnNo(Col), Message(Msg), 173 LineContents(LineStr), ShowLine(showline) {} --- 16 unchanged lines hidden --- | 166 167 // Diagnostic with a location. 168 SMDiagnostic(const SourceMgr &sm, SMLoc L, const std::string &FN, 169 int Line, int Col, 170 const std::string &Msg, const std::string &LineStr, 171 bool showline = true) 172 : SM(&sm), Loc(L), Filename(FN), LineNo(Line), ColumnNo(Col), Message(Msg), 173 LineContents(LineStr), ShowLine(showline) {} --- 16 unchanged lines hidden --- |