mirror of https://gitlab.com/cppit/libclangmm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
463 B
17 lines
463 B
#ifndef SOURCERANGE_H_ |
|
#define SOURCERANGE_H_ |
|
#include <clang-c/Index.h> |
|
#include "SourceLocation.h" |
|
#include <string> |
|
#include <utility> |
|
|
|
namespace clang { |
|
class SourceRange { |
|
public: |
|
SourceRange(const CXSourceRange& cx_range) : cx_range(cx_range) {} |
|
SourceRange(SourceLocation &start, SourceLocation &end); |
|
std::pair<clang::Offset, clang::Offset> get_offsets(); |
|
CXSourceRange cx_range; |
|
}; |
|
} // namespace clang |
|
#endif // SOURCERANGE_H_
|
|
|