Skip to content
Commit b2cb7e81 authored by Joachim Priesner's avatar Joachim Priesner Committed by Richard
Browse files

[clang-tidy] cppcoreguidelines-virtual-class-destructor: Fix crash when...

[clang-tidy] cppcoreguidelines-virtual-class-destructor: Fix crash when "virtual" keyword is expanded from a macro

Check llvm::Optional before dereferencing it.

Compute VirtualEndLoc differently to avoid an assertion failure
in clang::SourceManager::getFileIDLoaded:

Assertion `0 && "Invalid SLocOffset or bad function choice"' failed
parent b0d6dd39
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment