| 264 | } |
| 265 | |
| 266 | unsigned |
| 267 | DefMapGenerator::getGlobalEndOffset(const VarDecl &D, |
| 268 | const SourceManager &SrcManager) const { |
| 269 | auto Loc = SrcManager.getTopMacroCallerLoc(D.getBeginLoc()); |
| 270 | auto FileID = SrcManager.getFileID(Loc); |
| 271 | auto EndLoc = SrcManager.getLocForEndOfFile(FileID); |
| 272 | if (EndLoc.isInvalid()) { |
| 273 | Loc = SrcManager.getSpellingLoc(D.getBeginLoc()); |
| 274 | FileID = SrcManager.getFileID(Loc); |
| 275 | EndLoc = SrcManager.getLocForEndOfFile(FileID); |
| 276 | assert(EndLoc.isValid() && "Unexpected Program State"); |
| 277 | } |
| 278 | return SrcManager.getFileOffset(EndLoc); |
| 279 | } |
| 280 | |
| 281 | unsigned |
| 282 | DefMapGenerator::getNonGlobalEndOffset(const VarDecl &D, |
nothing calls this directly
no test coverage detected