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.

24 lines
517 B

11 years ago
#ifndef SOURCERANGE_H_
#define SOURCERANGE_H_
#include "TranslationUnit.h"
#include "Token.h"
#include "Cursor.h"
namespace clang {
class SourceRange {
public:
11 years ago
SourceRange() {}
11 years ago
SourceRange(TranslationUnit *tu, Token *token);
SourceRange(SourceLocation *start,
SourceLocation *end);
explicit SourceRange(Cursor *cursor);
private:
CXSourceRange range_;
friend Tokens;
friend SourceLocation;
11 years ago
friend Diagnostic;
11 years ago
};
} // namespace clang
#endif // SOURCERANGE_H_