2018-08-21 05:27:52 +00:00
|
|
|
/* Copyright 2017-2018 ccls Authors
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
==============================================================================*/
|
|
|
|
|
2017-11-11 19:31:05 +00:00
|
|
|
#pragma once
|
2018-02-22 07:34:32 +00:00
|
|
|
#include "position.h"
|
2018-01-01 07:27:33 +00:00
|
|
|
|
2018-08-29 05:49:53 +00:00
|
|
|
#include <clang/Basic/SourceManager.h>
|
2017-11-11 19:31:05 +00:00
|
|
|
|
2018-08-09 17:08:14 +00:00
|
|
|
#include <stdlib.h>
|
2018-05-28 00:50:02 +00:00
|
|
|
|
2018-07-29 04:32:41 +00:00
|
|
|
Range FromCharSourceRange(const clang::SourceManager &SM,
|
|
|
|
const clang::LangOptions &LangOpts,
|
|
|
|
clang::CharSourceRange R,
|
|
|
|
llvm::sys::fs::UniqueID *UniqueID = nullptr);
|
|
|
|
|
2018-08-09 17:08:14 +00:00
|
|
|
Range FromCharRange(const clang::SourceManager &SM,
|
|
|
|
const clang::LangOptions &LangOpts, clang::SourceRange R,
|
2018-07-14 23:02:59 +00:00
|
|
|
llvm::sys::fs::UniqueID *UniqueID = nullptr);
|
|
|
|
|
2018-08-09 17:08:14 +00:00
|
|
|
Range FromTokenRange(const clang::SourceManager &SM,
|
|
|
|
const clang::LangOptions &LangOpts, clang::SourceRange R,
|
2018-07-14 23:02:59 +00:00
|
|
|
llvm::sys::fs::UniqueID *UniqueID = nullptr);
|