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.

23 lines
493 B

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