[lldb/Core] Add SourceLocationSpec class (NFC)
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Fri, 30 Apr 2021 22:44:54 +0000 (22:44 +0000)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Tue, 4 May 2021 16:34:45 +0000 (16:34 +0000)
commitadfffebec6d6910304e4b1ccdbef78e226a8fd32
treeae1237f94d6c272e70f70fc4f08d6e68f28aeb8e
parent1435f6b00be79f1042818da8714ad4de2aef7848
[lldb/Core] Add SourceLocationSpec class (NFC)

A source location specifier class that holds a Declaration object containing
a FileSpec with line and column information. The column line is optional.
It also holds search flags that can be fetched by resolvers to look inlined
declarations and/or exact matches.

It describes a specific location in a source file and allows the user
to perform checks and comparaisons between multiple instances of that class.

Differential Revision: https://reviews.llvm.org/D100962

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
lldb/include/lldb/Core/SourceLocationSpec.h [new file with mode: 0644]
lldb/source/Core/CMakeLists.txt
lldb/source/Core/SourceLocationSpec.cpp [new file with mode: 0644]
lldb/unittests/Core/CMakeLists.txt
lldb/unittests/Core/SourceLocationSpecTest.cpp [new file with mode: 0644]