2017-02-16 09:35:30 +00:00
|
|
|
#ifndef SOURCERANGE_H_
|
|
|
|
#define SOURCERANGE_H_
|
|
|
|
#include <clang-c/Index.h>
|
|
|
|
#include "SourceLocation.h"
|
|
|
|
#include <string>
|
|
|
|
#include <utility>
|
|
|
|
|
|
|
|
namespace clang {
|
|
|
|
class SourceRange {
|
|
|
|
public:
|
2017-02-18 19:37:24 +00:00
|
|
|
/*
|
2017-02-16 09:35:30 +00:00
|
|
|
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;
|
2017-02-18 19:37:24 +00:00
|
|
|
*/
|
2017-02-16 09:35:30 +00:00
|
|
|
};
|
|
|
|
} // namespace clang
|
|
|
|
#endif // SOURCERANGE_H_
|