reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Derived Classes

tools/clang/include/clang/Basic/SourceLocation.h
  345 class FullSourceLoc : public SourceLocation {

Declarations

tools/clang/include/clang/AST/ASTStructuralEquivalence.h
   31 class SourceLocation;
tools/clang/include/clang/AST/SelectorLocationsKind.h
   21   class SourceLocation;
tools/clang/include/clang/Basic/DiagnosticIDs.h
   24   class SourceLocation;
tools/clang/include/clang/Basic/IdentifierTable.h
   41 class SourceLocation;
tools/clang/include/clang/Basic/TargetInfo.h
   48 class SourceLocation;
tools/clang/include/clang/Index/USRGeneration.h
   20 class SourceLocation;
tools/clang/include/clang/Lex/LiteralSupport.h
   31 class SourceLocation;
tools/clang/include/clang/Lex/MacroArgs.h
   25   class SourceLocation;
tools/clang/include/clang/Serialization/ASTDeserializationListener.h
   28 class SourceLocation;
tools/clang/include/clang/Tooling/Refactoring/Rename/USRFinder.h
   27 class SourceLocation;
tools/clang/lib/Index/IndexingContext.h
   33   class SourceLocation;
tools/clang/tools/libclang/CIndexer.h
   30 class SourceLocation;
tools/lldb/include/lldb/Core/ClangForward.h
  101 class SourceLocation;

References

include/llvm/ADT/ArrayRef.h
   43     using iterator = const T *;
   44     using const_iterator = const T *;
   50     const T *Data = nullptr;
   66     /*implicit*/ ArrayRef(const T &OneElt)
   70     /*implicit*/ ArrayRef(const T *data, size_t length)
   74     ArrayRef(const T *begin, const T *end)
   74     ArrayRef(const T *begin, const T *end)
   81     /*implicit*/ ArrayRef(const SmallVectorTemplateCommon<T, U> &Vec)
   87     /*implicit*/ ArrayRef(const std::vector<T, A> &Vec)
   92     /*implicit*/ constexpr ArrayRef(const std::array<T, N> &Arr)
   97     /*implicit*/ constexpr ArrayRef(const T (&Arr)[N]) : Data(Arr), Length(N) {}
  100     /*implicit*/ ArrayRef(const std::initializer_list<T> &Vec)
  145     const T *data() const { return Data; }
  151     const T &front() const {
  157     const T &back() const {
  163     template <typename Allocator> ArrayRef<T> copy(Allocator &A) {
  178     ArrayRef<T> slice(size_t N, size_t M) const {
  184     ArrayRef<T> slice(size_t N) const { return slice(N, size() - N); }
  187     ArrayRef<T> drop_front(size_t N = 1) const {
  193     ArrayRef<T> drop_back(size_t N = 1) const {
  200     template <class PredicateT> ArrayRef<T> drop_while(PredicateT Pred) const {
  206     template <class PredicateT> ArrayRef<T> drop_until(PredicateT Pred) const {
  211     ArrayRef<T> take_front(size_t N = 1) const {
  218     ArrayRef<T> take_back(size_t N = 1) const {
  226     template <class PredicateT> ArrayRef<T> take_while(PredicateT Pred) const {
  232     template <class PredicateT> ArrayRef<T> take_until(PredicateT Pred) const {
  239     const T &operator[](size_t Index) const {
  249     typename std::enable_if<std::is_same<U, T>::value, ArrayRef<T>>::type &
  257     typename std::enable_if<std::is_same<U, T>::value, ArrayRef<T>>::type &
  263     std::vector<T> vec() const {
  270     operator std::vector<T>() const {
  456   ArrayRef<T> makeArrayRef(const T *data, size_t length) {
  456   ArrayRef<T> makeArrayRef(const T *data, size_t length) {
  502   ArrayRef<T> makeArrayRef(const T (&Arr)[N]) {
  502   ArrayRef<T> makeArrayRef(const T (&Arr)[N]) {
include/llvm/ADT/DenseMap.h
   40 struct DenseMapPair : public std::pair<KeyT, ValueT> {
   45   ValueT &getSecond() { return std::pair<KeyT, ValueT>::second; }
   46   const ValueT &getSecond() const { return std::pair<KeyT, ValueT>::second; }
   66   using mapped_type = ValueT;
   69   using iterator = DenseMapIterator<KeyT, ValueT, KeyInfoT, BucketT>;
   71       DenseMapIterator<KeyT, ValueT, KeyInfoT, BucketT, true>;
  185   ValueT lookup(const_arg_type_t<KeyT> Val) const {
  195   std::pair<iterator, bool> insert(const std::pair<KeyT, ValueT> &KV) {
  202   std::pair<iterator, bool> insert(std::pair<KeyT, ValueT> &&KV) {
  219         InsertIntoBucket(TheBucket, std::move(Key), std::forward<Ts>(Args)...);
  249   std::pair<iterator, bool> insert_as(std::pair<KeyT, ValueT> &&KV,
  299   ValueT &operator[](const KeyT &Key) {
  311   ValueT &operator[](KeyT &&Key) {
  380         ::new (&DestBucket->getSecond()) ValueT(std::move(B->getSecond()));
  392       const DenseMapBase<OtherBaseT, KeyT, ValueT, KeyInfoT, BucketT> &other) {
  516                             ValueArgs &&... Values) {
  520     ::new (&TheBucket->getSecond()) ValueT(std::forward<ValueArgs>(Values)...);
  520     ::new (&TheBucket->getSecond()) ValueT(std::forward<ValueArgs>(Values)...);
  526                                       ValueT &&Value, LookupKeyT &Lookup) {
  684 class DenseMap : public DenseMapBase<DenseMap<KeyT, ValueT, KeyInfoT, BucketT>,
  685                                      KeyT, ValueT, KeyInfoT, BucketT> {
  690   using BaseT = DenseMapBase<DenseMap, KeyT, ValueT, KeyInfoT, BucketT>;
  852           SmallDenseMap<KeyT, ValueT, InlineBuckets, KeyInfoT, BucketT>, KeyT,
  853           ValueT, KeyInfoT, BucketT> {
 1031           ::new (&TmpEnd->getSecond()) ValueT(std::move(P->getSecond()));
 1163   using ConstIterator = DenseMapIterator<KeyT, ValueT, KeyInfoT, Bucket, true>;
 1199       const DenseMapIterator<KeyT, ValueT, KeyInfoT, Bucket, IsConstSrc> &I)
include/llvm/ADT/MapVector.h
   83   std::pair<KeyT, ValueT>       &front()       { return Vector.front(); }
   84   const std::pair<KeyT, ValueT> &front() const { return Vector.front(); }
   85   std::pair<KeyT, ValueT>       &back()        { return Vector.back(); }
   86   const std::pair<KeyT, ValueT> &back()  const { return Vector.back(); }
   98   ValueT &operator[](const KeyT &Key) {
  110   ValueT lookup(const KeyT &Key) const {
  117   std::pair<iterator, bool> insert(const std::pair<KeyT, ValueT> &KV) {
  129   std::pair<iterator, bool> insert(std::pair<KeyT, ValueT> &&KV) {
include/llvm/ADT/Optional.h
   87   template <class... Args> void emplace(Args &&... args) {
   89     ::new ((void *)std::addressof(value)) T(std::forward<Args>(args)...);
  144     T value;
  160   explicit OptionalStorage(in_place_t, Args &&... args)
  161       : value(std::forward<Args>(args)...), hasVal(true) {}
  172   T &getValue() LLVM_LVALUE_FUNCTION noexcept {
  176   T const &getValue() const LLVM_LVALUE_FUNCTION noexcept {
  181   T &&getValue() && noexcept {
  187   template <class... Args> void emplace(Args &&... args) {
  197       ::new ((void *)std::addressof(value)) T(y);
  216   optional_detail::OptionalStorage<T> Storage;
  219   using value_type = T;
  224   Optional(const T &y) : Storage(optional_detail::in_place_t{}, y) {}
  227   Optional(T &&y) : Storage(optional_detail::in_place_t{}, std::move(y)) {}
  230   Optional &operator=(T &&y) {
  237   template <typename... ArgTypes> void emplace(ArgTypes &&... Args) {
  238     Storage.emplace(std::forward<ArgTypes>(Args)...);
  241   static inline Optional create(const T *y) {
  245   Optional &operator=(const T &y) {
  253   const T *getPointer() const { return &Storage.getValue(); }
  254   T *getPointer() { return &Storage.getValue(); }
  255   const T &getValue() const LLVM_LVALUE_FUNCTION { return Storage.getValue(); }
  256   T &getValue() LLVM_LVALUE_FUNCTION { return Storage.getValue(); }
  260   const T *operator->() const { return getPointer(); }
  261   T *operator->() { return getPointer(); }
  262   const T &operator*() const LLVM_LVALUE_FUNCTION { return getValue(); }
  263   T &operator*() LLVM_LVALUE_FUNCTION { return getValue(); }
  266   constexpr T getValueOr(U &&value) const LLVM_LVALUE_FUNCTION {
  271   T &&getValue() && { return std::move(Storage.getValue()); }
  272   T &&operator*() && { return std::move(Storage.getValue()); }
  275   T getValueOr(U &&value) && {
include/llvm/ADT/STLExtras.h
  108   Ret (*callback)(intptr_t callable, Params ...params) = nullptr;
  108   Ret (*callback)(intptr_t callable, Params ...params) = nullptr;
  112   static Ret callback_fn(intptr_t callable, Params ...params) {
  112   static Ret callback_fn(intptr_t callable, Params ...params) {
  114         std::forward<Params>(params)...);
  129   Ret operator()(Params ...params) const {
  129   Ret operator()(Params ...params) const {
  130     return callback(callable, std::forward<Params>(params)...);
 1023 constexpr inline size_t array_lengthof(T (&)[N]) {
 1267 auto lower_bound(R &&Range, T &&Value, Compare C)
 1270                           std::forward<T>(Value), C);
 1282 auto upper_bound(R &&Range, T &&Value, Compare C)
include/llvm/ADT/SmallPtrSet.h
  268   using PtrTraits = PointerLikeTypeTraits<PtrTy>;
  271   using value_type = PtrTy;
  272   using reference = PtrTy;
  273   using pointer = PtrTy;
  283   const PtrTy operator*() const {
  344   using ConstPtrType = typename add_const_past_pointer<PtrType>::type;
  345   using PtrTraits = PointerLikeTypeTraits<PtrType>;
  359   using iterator = SmallPtrSetIterator<PtrType>;
  360   using const_iterator = SmallPtrSetIterator<PtrType>;
  362   using value_type = PtrType;
  370   std::pair<iterator, bool> insert(PtrType Ptr) {
  377   bool erase(PtrType Ptr) {
  392   void insert(std::initializer_list<PtrType> IL) {
  417 class SmallPtrSet : public SmallPtrSetImpl<PtrType> {
  423   using BaseT = SmallPtrSetImpl<PtrType>;
  441   SmallPtrSet(std::initializer_list<PtrType> IL)
  446   SmallPtrSet<PtrType, SmallSize> &
  447   operator=(const SmallPtrSet<PtrType, SmallSize> &RHS) {
  453   SmallPtrSet<PtrType, SmallSize> &
  454   operator=(SmallPtrSet<PtrType, SmallSize> &&RHS) {
  460   SmallPtrSet<PtrType, SmallSize> &
  461   operator=(std::initializer_list<PtrType> IL) {
  468   void swap(SmallPtrSet<PtrType, SmallSize> &RHS) {
include/llvm/ADT/SmallSet.h
  138   SmallVector<T, N> Vector;
  139   std::set<T, C> Set;
  141   using VIterator = typename SmallVector<T, N>::const_iterator;
  142   using mutable_iterator = typename SmallVector<T, N>::iterator;
  151   using const_iterator = SmallSetIterator<T, N, C>;
  164   size_type count(const T &V) const {
  180   std::pair<NoneType, bool> insert(const T &V) {
  207   bool erase(const T &V) {
  238   VIterator vfind(const T &V) const {
include/llvm/ADT/SmallVector.h
   75   AlignedCharArrayUnion<T> FirstEl;
  114   using value_type = T;
  115   using iterator = T *;
  116   using const_iterator = const T *;
  121   using reference = T &;
  122   using const_reference = const T &;
  123   using pointer = T *;
  124   using const_pointer = const T *;
  259 class SmallVectorTemplateBase<T, true> : public SmallVectorTemplateCommon<T> {
  264   static void destroy_range(T *, T *) {}
  264   static void destroy_range(T *, T *) {}
  286       T1 *I, T1 *E, T2 *Dest,
  286       T1 *I, T1 *E, T2 *Dest,
  286       T1 *I, T1 *E, T2 *Dest,
  287       typename std::enable_if<std::is_same<typename std::remove_const<T1>::type,
  288                                            T2>::value>::type * = nullptr) {
  294       memcpy(reinterpret_cast<void *>(Dest), I, (E - I) * sizeof(T));
  299   void grow(size_t MinSize = 0) { this->grow_pod(MinSize, sizeof(T)); }
  302   void push_back(const T &Elt) {
  305     memcpy(reinterpret_cast<void *>(this->end()), &Elt, sizeof(T));
  315 class SmallVectorImpl : public SmallVectorTemplateBase<T> {
  316   using SuperClass = SmallVectorTemplateBase<T>;
  352         new (&*I) T();
  357   void resize(size_type N, const T &NV) {
  374   LLVM_NODISCARD T pop_back_val() {
  375     T Result = ::std::move(this->back());
  397   void append(size_type NumInputs, const T &Elt) {
  405   void append(std::initializer_list<T> IL) {
  412   void assign(size_type NumElts, const T &Elt) {
  429   void assign(std::initializer_list<T> IL) {
  467   iterator insert(iterator I, T &&Elt) {
  497   iterator insert(iterator I, const T &Elt) {
  526   iterator insert(iterator I, size_type NumToInsert, const T &Elt) {
  637   void insert(iterator I, std::initializer_list<T> IL) {
  641   template <typename... ArgTypes> reference emplace_back(ArgTypes &&... Args) {
  644     ::new ((void *)this->end()) T(std::forward<ArgTypes>(Args)...);
  820   AlignedCharArrayUnion<T> InlineElts[N];
  837 class SmallVector : public SmallVectorImpl<T>, SmallVectorStorage<T, N> {
  837 class SmallVector : public SmallVectorImpl<T>, SmallVectorStorage<T, N> {
  846   explicit SmallVector(size_t Size, const T &Value = T())
  865   SmallVector(std::initializer_list<T> IL) : SmallVectorImpl<T>(N) {
  884   SmallVector(SmallVectorImpl<T> &&RHS) : SmallVectorImpl<T>(N) {
include/llvm/ADT/StringMap.h
  129   ValueTy second;
  134   StringMapEntryStorage(size_t strLen, InitTy &&... InitVals)
  135       : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
  138   const ValueTy &getValue() const { return second; }
  139   ValueTy &getValue() { return second; }
  141   void setValue(const ValueTy &V) { second = V; }
  158 class StringMapEntry final : public StringMapEntryStorage<ValueTy> {
  160   using StringMapEntryStorage<ValueTy>::StringMapEntryStorage;
  179                                 InitTy &&... InitVals) {
  192     new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
  204   static StringMapEntry *Create(StringRef Key, InitType &&... InitVal) {
  246   using MapEntryTy = StringMapEntry<ValueTy>;
  260   StringMap(std::initializer_list<std::pair<StringRef, ValueTy>> List)
  330   using mapped_type = ValueTy;
  331   using value_type = StringMapEntry<ValueTy>;
  334   using const_iterator = StringMapConstIterator<ValueTy>;
  335   using iterator = StringMapIterator<ValueTy>;
  350   iterator_range<StringMapKeyIterator<ValueTy>> keys() const {
  369   ValueTy lookup(StringRef Key) const {
  378   ValueTy &operator[](StringRef Key) { return try_emplace(Key).first->second; }
  413   std::pair<iterator, bool> insert(std::pair<StringRef, ValueTy> KV) {
  432   std::pair<iterator, bool> try_emplace(StringRef Key, ArgsTy &&... Args) {
  441     Bucket = MapEntryTy::Create(Key, Allocator, std::forward<ArgsTy>(Args)...);
  531     : public StringMapIterBase<StringMapConstIterator<ValueTy>,
  532                                const StringMapEntry<ValueTy>> {
  533   using base = StringMapIterBase<StringMapConstIterator<ValueTy>,
  534                                  const StringMapEntry<ValueTy>>;
  542   const StringMapEntry<ValueTy> &operator*() const {
  548 class StringMapIterator : public StringMapIterBase<StringMapIterator<ValueTy>,
  549                                                    StringMapEntry<ValueTy>> {
  551       StringMapIterBase<StringMapIterator<ValueTy>, StringMapEntry<ValueTy>>;
  551       StringMapIterBase<StringMapIterator<ValueTy>, StringMapEntry<ValueTy>>;
  559   StringMapEntry<ValueTy> &operator*() const {
  563   operator StringMapConstIterator<ValueTy>() const {
include/llvm/Support/AlignOf.h
   30   T t;
   39 template <typename T> union SizerImpl<T> { char arr[sizeof(T)]; };
   50       llvm::detail::SizerImpl<T, Ts...>)];
include/llvm/Support/Alignment.h
  103     return Constant<std::alignment_of<T>::value>();
include/llvm/Support/Error.h
  330 template <typename ErrT, typename... ArgTs> Error make_error(ArgTs &&... Args) {
  437   static const bool isRef = std::is_reference<T>::value;
  439   using wrap = std::reference_wrapper<typename std::remove_reference<T>::type>;
  444   using storage_type = typename std::conditional<isRef, wrap, T>::type;
  445   using value_type = T;
  448   using reference = typename std::remove_reference<T>::type &;
  449   using const_reference = const typename std::remove_reference<T>::type &;
  450   using pointer = typename std::remove_reference<T>::type *;
  451   using const_pointer = const typename std::remove_reference<T>::type *;
  474   Expected(OtherT &&Val,
  475            typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
  475            typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
  483     new (getStorage()) storage_type(std::forward<OtherT>(Val));
  492   Expected(Expected<OtherT> &&Other,
  493            typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
  493            typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
  594   template <class OtherT> void moveConstruct(Expected<OtherT> &&Other) {
  731 T cantFail(Expected<T> ValOrErr, const char *Msg = nullptr) {
  731 T cantFail(Expected<T> ValOrErr, const char *Msg = nullptr) {
include/llvm/Support/SaveAndRestore.h
   22   SaveAndRestore(T &X) : X(X), OldValue(X) {}
   23   SaveAndRestore(T &X, const T &NewValue) : X(X), OldValue(X) {
   23   SaveAndRestore(T &X, const T &NewValue) : X(X), OldValue(X) {
   27   T get() { return OldValue; }
   30   T &X;
   31   T OldValue;
include/llvm/Support/TrailingObjects.h
   65     FirstAlignment = alignof(First),
   66     RestAlignment = AlignmentCalcHelper<Rest...>::Alignment,
   77   enum { Alignment = alignof(First) };
  134     : public TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, NextTy,
  135                                  MoreTys...> {
  137   typedef TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, NextTy, MoreTys...>
  137   typedef TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, NextTy, MoreTys...>
  141     static const bool value = alignof(PrevTy) < alignof(NextTy);
  141     static const bool value = alignof(PrevTy) < alignof(NextTy);
  161   static const NextTy *
  163                          TrailingObjectsBase::OverloadToken<NextTy>) {
  171           alignAddr(Ptr, Align::Of<NextTy>()));
  176   static NextTy *
  178                          TrailingObjectsBase::OverloadToken<NextTy>) {
  179     auto *Ptr = TopTrailingObj::getTrailingObjectsImpl(
  185       return reinterpret_cast<NextTy *>(alignAddr(Ptr, Align::Of<NextTy>()));
  195       typename ExtractSecondType<MoreTys, size_t>::type... MoreCounts) {
  197         (requiresRealignment() ? llvm::alignTo<alignof(NextTy)>(SizeSoFar)
  199             sizeof(NextTy) * Count1,
  231                                 TrailingTys...>::Alignment,
  232                             BaseTy, TrailingObjects<BaseTy, TrailingTys...>,
  233                             BaseTy, TrailingTys...> {
  241       trailing_objects_internal::AlignmentCalcHelper<TrailingTys...>::Alignment,
  242       BaseTy, TrailingObjects<BaseTy, TrailingTys...>, BaseTy, TrailingTys...>
  242       BaseTy, TrailingObjects<BaseTy, TrailingTys...>, BaseTy, TrailingTys...>
  284                                        TrailingObjectsBase::OverloadToken<T>) {
  302   template <typename T> const T *getTrailingObjects() const {
  314   template <typename T> T *getTrailingObjects() {
  330       std::is_same<Foo<TrailingTys...>, Foo<Tys...>>::value, size_t>::type
  330       std::is_same<Foo<TrailingTys...>, Foo<Tys...>>::value, size_t>::type
  332                         TrailingTys, size_t>::type... Counts) {
  342       std::is_same<Foo<TrailingTys...>, Foo<Tys...>>::value, size_t>::type
  342       std::is_same<Foo<TrailingTys...>, Foo<Tys...>>::value, size_t>::type
  344                    TrailingTys, size_t>::type... Counts) {
include/llvm/Support/type_traits.h
   55 struct add_const_past_pointer { using type = const T; };
   91     T t;
  122     static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{});
  122     static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{});
  122     static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{});
  130     static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{});
  130     static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{});
  130     static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{});
  145       std::is_copy_constructible<detail::trivial_helper<T>>::value;
  147       !std::is_copy_constructible<T>::value;
  151       std::is_move_constructible<detail::trivial_helper<T>>::value;
  153       !std::is_move_constructible<T>::value;
  157       is_copy_assignable<detail::trivial_helper<T>>::value;
  159       !is_copy_assignable<T>::value;
  163       is_move_assignable<detail::trivial_helper<T>>::value;
  165       !is_move_assignable<T>::value;
  169       std::is_destructible<detail::trivial_helper<T>>::value;
include/llvm/Testing/Support/Error.h
   23 template <typename T> ExpectedHolder<T> TakeExpected(Expected<T> &Exp) {
   23 template <typename T> ExpectedHolder<T> TakeExpected(Expected<T> &Exp) {
   27 template <typename T> ExpectedHolder<T> TakeExpected(Expected<T> &&Exp) {
   27 template <typename T> ExpectedHolder<T> TakeExpected(Expected<T> &&Exp) {
   33     : public testing::MatcherInterface<const ExpectedHolder<T> &> {
   35   explicit ValueMatchesMono(const testing::Matcher<T> &Matcher)
   38   bool MatchAndExplain(const ExpectedHolder<T> &Holder,
   66   testing::Matcher<T> Matcher;
   72   explicit ValueMatchesPoly(const M &Matcher) : Matcher(Matcher) {}
   75   operator testing::Matcher<const ExpectedHolder<T> &>() const {
   77         new ValueMatchesMono<T>(testing::SafeMatcherCast<T>(Matcher)));
   77         new ValueMatchesMono<T>(testing::SafeMatcherCast<T>(Matcher)));
   81   M Matcher;
  158 detail::ValueMatchesPoly<M> HasValue(M Matcher) {
  158 detail::ValueMatchesPoly<M> HasValue(M Matcher) {
include/llvm/Testing/Support/SupportHelpers.h
   30   ExpectedHolder(ErrorHolder Err, Expected<T> &Exp)
   33   Expected<T> &Exp;
   51 void PrintTo(const ExpectedHolder<T> &Item, std::ostream *Out) {
tools/clang/include/clang/ARCMigrate/ARCMT.h
  117     virtual void insert(SourceLocation loc, StringRef text) { }
tools/clang/include/clang/AST/ASTContext.h
  735   FullSourceLoc getFullLoc(SourceLocation Loc) const {
  785       const Decl *D, const SourceLocation RepresentativeLocForDecl,
  903                         SourceLocation PointOfInstantiation = SourceLocation());
 1356                                   SourceLocation AttrLoc,
 1372                                           SourceLocation AttrLoc) const;
 1376                                         SourceLocation AttrLoc) const;
 1456   getTemplateSpecializationTypeInfo(TemplateName T, SourceLocation TLoc,
 1993                                          SourceLocation NameLoc) const;
 2756                            SourceLocation Loc = SourceLocation()) const;
 3028     SourceLocation PragmaSectionLocation;
 3033                 SourceLocation PragmaSectionLocation,
tools/clang/include/clang/AST/ASTImporter.h
  341     LLVM_NODISCARD llvm::Error importInto(ImportT &To, const ImportT &From) {
  341     LLVM_NODISCARD llvm::Error importInto(ImportT &To, const ImportT &From) {
  446     llvm::Expected<SourceLocation> Import(SourceLocation FromLoc);
  446     llvm::Expected<SourceLocation> Import(SourceLocation FromLoc);
  545     DiagnosticBuilder ToDiag(SourceLocation Loc, unsigned DiagID);
  548     DiagnosticBuilder FromDiag(SourceLocation Loc, unsigned DiagID);
tools/clang/include/clang/AST/ASTStructuralEquivalence.h
   82   DiagnosticBuilder Diag1(SourceLocation Loc, unsigned DiagID);
   83   DiagnosticBuilder Diag2(SourceLocation Loc, unsigned DiagID);
tools/clang/include/clang/AST/Attr.h
   92   SourceLocation getLocation() const { return getRange().getBegin(); }
tools/clang/include/clang/AST/Availability.h
   39   SourceLocation BeginLoc, EndLoc;
   43                    SourceLocation BeginLoc, SourceLocation EndLoc)
   43                    SourceLocation BeginLoc, SourceLocation EndLoc)
   48   AvailabilitySpec(SourceLocation StarLoc)
   53   SourceLocation getBeginLoc() const { return BeginLoc; }
   54   SourceLocation getEndLoc() const { return EndLoc; }
tools/clang/include/clang/AST/Comment.h
   55   SourceLocation Loc;
  180   void setLocation(SourceLocation L) {
  197           SourceLocation LocBegin,
  198           SourceLocation LocEnd) :
  217   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
  219   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
  221   SourceLocation getLocation() const LLVM_READONLY { return Loc; }
  240                        SourceLocation LocBegin,
  241                        SourceLocation LocEnd) :
  266   TextComment(SourceLocation LocBegin,
  267               SourceLocation LocEnd,
  321   InlineCommandComment(SourceLocation LocBegin,
  322                        SourceLocation LocEnd,
  377                  SourceLocation LocBegin,
  378                  SourceLocation LocEnd,
  380                  SourceLocation TagNameBegin,
  381                  SourceLocation TagNameEnd) :
  398     SourceLocation L = getLocation();
  417     SourceLocation NameLocBegin;
  420     SourceLocation EqualsLoc;
  427     Attribute(SourceLocation NameLocBegin, StringRef Name) :
  433     Attribute(SourceLocation NameLocBegin, StringRef Name,
  434               SourceLocation EqualsLoc,
  441     SourceLocation getNameLocEnd() const {
  454   HTMLStartTagComment(SourceLocation LocBegin,
  484       SourceLocation L = Attr.ValueRange.getEnd();
  493   void setGreaterLoc(SourceLocation GreaterLoc) {
  509   HTMLEndTagComment(SourceLocation LocBegin,
  510                     SourceLocation LocEnd,
  533                       SourceLocation LocBegin,
  534                       SourceLocation LocEnd) :
  614                       SourceLocation LocBegin,
  615                       SourceLocation LocEnd,
  626   BlockCommandComment(SourceLocation LocBegin,
  627                       SourceLocation LocEnd,
  658   SourceLocation getCommandNameBeginLoc() const {
  683       SourceLocation NewLocEnd = Args.back().Range.getEnd();
  699     SourceLocation NewLocEnd = PC->getEndLoc();
  722   ParamCommandComment(SourceLocation LocBegin,
  723                       SourceLocation LocEnd,
  816   TParamCommandComment(SourceLocation LocBegin,
  817                        SourceLocation LocEnd,
  867   VerbatimBlockLineComment(SourceLocation LocBegin,
  894   SourceLocation CloseNameLocBegin;
  898   VerbatimBlockComment(SourceLocation LocBegin,
  899                        SourceLocation LocEnd,
  918   void setCloseName(StringRef Name, SourceLocation LocBegin) {
  946   SourceLocation TextBegin;
  949   VerbatimLineComment(SourceLocation LocBegin,
  950                       SourceLocation LocEnd,
  952                       SourceLocation TextBegin,
tools/clang/include/clang/AST/CommentBriefParser.h
   37   SourceLocation ConsumeToken() {
   38     SourceLocation Loc = Tok.getLocation();
tools/clang/include/clang/AST/CommentLexer.h
   60   SourceLocation Loc;
   80   SourceLocation getLocation() const LLVM_READONLY { return Loc; }
   81   void setLocation(SourceLocation SL) { Loc = SL; }
   83   SourceLocation getEndLocation() const LLVM_READONLY {
  235   SourceLocation FileLoc;
  307   SourceLocation getSourceLocation(const char *Loc) const {
  315   DiagnosticBuilder Diag(SourceLocation Loc, unsigned DiagID) {
  349         const CommandTraits &Traits, SourceLocation FileLoc,
tools/clang/include/clang/AST/CommentParser.h
   47   DiagnosticBuilder Diag(SourceLocation Loc, unsigned DiagID) {
tools/clang/include/clang/AST/CommentSema.h
   63   DiagnosticBuilder Diag(SourceLocation Loc, unsigned DiagID) {
   89   BlockCommandComment *actOnBlockCommandStart(SourceLocation LocBegin,
   90                                               SourceLocation LocEnd,
  100   ParamCommandComment *actOnParamCommandStart(SourceLocation LocBegin,
  101                                               SourceLocation LocEnd,
  106                                      SourceLocation ArgLocBegin,
  107                                      SourceLocation ArgLocEnd,
  111                                      SourceLocation ArgLocBegin,
  112                                      SourceLocation ArgLocEnd,
  118   TParamCommandComment *actOnTParamCommandStart(SourceLocation LocBegin,
  119                                                 SourceLocation LocEnd,
  124                                       SourceLocation ArgLocBegin,
  125                                       SourceLocation ArgLocEnd,
  131   InlineCommandComment *actOnInlineCommand(SourceLocation CommandLocBegin,
  132                                            SourceLocation CommandLocEnd,
  135   InlineCommandComment *actOnInlineCommand(SourceLocation CommandLocBegin,
  136                                            SourceLocation CommandLocEnd,
  138                                            SourceLocation ArgLocBegin,
  139                                            SourceLocation ArgLocEnd,
  142   InlineContentComment *actOnUnknownCommand(SourceLocation LocBegin,
  143                                             SourceLocation LocEnd,
  146   InlineContentComment *actOnUnknownCommand(SourceLocation LocBegin,
  147                                             SourceLocation LocEnd,
  150   TextComment *actOnText(SourceLocation LocBegin,
  151                          SourceLocation LocEnd,
  154   VerbatimBlockComment *actOnVerbatimBlockStart(SourceLocation Loc,
  157   VerbatimBlockLineComment *actOnVerbatimBlockLine(SourceLocation Loc,
  161                                 SourceLocation CloseNameLocBegin,
  165   VerbatimLineComment *actOnVerbatimLine(SourceLocation LocBegin,
  167                                          SourceLocation TextBegin,
  170   HTMLStartTagComment *actOnHTMLStartTagStart(SourceLocation LocBegin,
  175                                SourceLocation GreaterLoc,
  178   HTMLEndTagComment *actOnHTMLEndTag(SourceLocation LocBegin,
  179                                      SourceLocation LocEnd,
tools/clang/include/clang/AST/DataCollection.h
   39 std::string getMacroStack(SourceLocation Loc, ASTContext &Context);
tools/clang/include/clang/AST/Decl.h
  149   PragmaCommentDecl(TranslationUnitDecl *TU, SourceLocation CommentLoc,
  157                                    SourceLocation CommentLoc,
  183   PragmaDetectMismatchDecl(TranslationUnitDecl *TU, SourceLocation Loc,
  192                                           SourceLocation Loc, StringRef Name,
  261   NamedDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName N)
  485   SourceLocation LocStart;
  487   LabelDecl(DeclContext *DC, SourceLocation IdentL, IdentifierInfo *II,
  488             LabelStmt *S, SourceLocation StartL)
  495                            SourceLocation IdentL, IdentifierInfo *II);
  497                            SourceLocation IdentL, IdentifierInfo *II,
  498                            SourceLocation GnuLabelL);
  505   void setLocStart(SourceLocation L) { LocStart = L; }
  528   SourceLocation LocStart;
  531   SourceLocation RBraceLoc;
  540                 SourceLocation StartLoc, SourceLocation IdLoc,
  540                 SourceLocation StartLoc, SourceLocation IdLoc,
  554                                bool Inline, SourceLocation StartLoc,
  555                                SourceLocation IdLoc, IdentifierInfo *Id,
  626   SourceLocation getBeginLoc() const LLVM_READONLY { return LocStart; }
  627   SourceLocation getRBraceLoc() const { return RBraceLoc; }
  628   void setLocStart(SourceLocation L) { LocStart = L; }
  629   void setRBraceLoc(SourceLocation L) { RBraceLoc = L; }
  651   ValueDecl(Kind DK, DeclContext *DC, SourceLocation L,
  708   SourceLocation InnerLocStart;
  715   DeclaratorDecl(Kind DK, DeclContext *DC, SourceLocation L,
  717                  SourceLocation StartL)
  738   SourceLocation getInnerLocStart() const { return InnerLocStart; }
  739   void setInnerLocStart(SourceLocation L) { InnerLocStart = L; }
  743   SourceLocation getOuterLocStart() const;
  747   SourceLocation getBeginLoc() const LLVM_READONLY {
  780   SourceLocation getTypeSpecStartLoc() const;
  995   VarDecl(Kind DK, ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
  996           SourceLocation IdLoc, IdentifierInfo *Id, QualType T,
 1025                          SourceLocation StartLoc, SourceLocation IdLoc,
 1025                          SourceLocation StartLoc, SourceLocation IdLoc,
 1487   SourceLocation getPointOfInstantiation() const;
 1497                         SourceLocation PointOfInstantiation = SourceLocation());
 1566                                    SourceLocation IdLoc, IdentifierInfo *Id,
 1573   ImplicitParamDecl(ASTContext &C, DeclContext *DC, SourceLocation IdLoc,
 1607   ParmVarDecl(Kind DK, ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
 1608               SourceLocation IdLoc, IdentifierInfo *Id, QualType T,
 1620                              SourceLocation StartLoc,
 1621                              SourceLocation IdLoc, IdentifierInfo *Id,
 1826   SourceLocation EndRangeLoc;
 1877                                          SourceLocation PointOfInstantiation);
 1898   FunctionDecl(Kind DK, ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
 1932   Create(ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
 1933          SourceLocation NLoc, DeclarationName N, QualType T,
 1944                               SourceLocation StartLoc,
 1959   void setRangeEnd(SourceLocation E) { EndRangeLoc = E; }
 2581                 SourceLocation PointOfInstantiation = SourceLocation()) {
 2608                         SourceLocation PointOfInstantiation = SourceLocation());
 2616   SourceLocation getPointOfInstantiation() const;
 2697   FieldDecl(Kind DK, DeclContext *DC, SourceLocation StartLoc,
 2698             SourceLocation IdLoc, IdentifierInfo *Id,
 2713                            SourceLocation StartLoc, SourceLocation IdLoc,
 2713                            SourceLocation StartLoc, SourceLocation IdLoc,
 2867   EnumConstantDecl(DeclContext *DC, SourceLocation L,
 2876                                   SourceLocation L, IdentifierInfo *Id,
 2906   IndirectFieldDecl(ASTContext &C, DeclContext *DC, SourceLocation L,
 2916                                    SourceLocation L, IdentifierInfo *Id,
 2960   SourceLocation LocStart;
 2965   TypeDecl(Kind DK, DeclContext *DC, SourceLocation L, IdentifierInfo *Id,
 2966            SourceLocation StartL = SourceLocation())
 2977   SourceLocation getBeginLoc() const LLVM_READONLY { return LocStart; }
 2978   void setLocStart(SourceLocation L) { LocStart = L; }
 3008                   SourceLocation StartLoc, SourceLocation IdLoc,
 3008                   SourceLocation StartLoc, SourceLocation IdLoc,
 3095   TypedefDecl(ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
 3096               SourceLocation IdLoc, IdentifierInfo *Id, TypeSourceInfo *TInfo)
 3101                              SourceLocation StartLoc, SourceLocation IdLoc,
 3101                              SourceLocation StartLoc, SourceLocation IdLoc,
 3118   TypeAliasDecl(ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
 3119                 SourceLocation IdLoc, IdentifierInfo *Id, TypeSourceInfo *TInfo)
 3125                                SourceLocation StartLoc, SourceLocation IdLoc,
 3125                                SourceLocation StartLoc, SourceLocation IdLoc,
 3174           SourceLocation L, IdentifierInfo *Id, TagDecl *PrevDecl,
 3175           SourceLocation StartL);
 3226   SourceLocation getInnerLocStart() const { return getBeginLoc(); }
 3230   SourceLocation getOuterLocStart() const;
 3438   EnumDecl(ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
 3439            SourceLocation IdLoc, IdentifierInfo *Id, EnumDecl *PrevDecl,
 3508                           SourceLocation StartLoc, SourceLocation IdLoc,
 3508                           SourceLocation StartLoc, SourceLocation IdLoc,
 3645                         SourceLocation PointOfInstantiation = SourceLocation());
 3699              SourceLocation StartLoc, SourceLocation IdLoc,
 3699              SourceLocation StartLoc, SourceLocation IdLoc,
 3704                             SourceLocation StartLoc, SourceLocation IdLoc,
 3704                             SourceLocation StartLoc, SourceLocation IdLoc,
 3925   SourceLocation RParenLoc;
 3928                    SourceLocation StartL, SourceLocation EndL)
 3928                    SourceLocation StartL, SourceLocation EndL)
 3935                                   StringLiteral *Str, SourceLocation AsmLoc,
 3936                                   SourceLocation RParenLoc);
 3940   SourceLocation getAsmLoc() const { return getLocation(); }
 3941   SourceLocation getRParenLoc() const { return RParenLoc; }
 3942   void setRParenLoc(SourceLocation L) { RParenLoc = L; }
 4025   BlockDecl(DeclContext *DC, SourceLocation CaretLoc);
 4028   static BlockDecl *Create(ASTContext &C, DeclContext *DC, SourceLocation L);
 4031   SourceLocation getCaretLocation() const { return getLocation(); }
 4253                          llvm::TrailingObjects<ImportDecl, SourceLocation> {
 4271   ImportDecl(DeclContext *DC, SourceLocation StartLoc, Module *Imported,
 4272              ArrayRef<SourceLocation> IdentifierLocs);
 4274   ImportDecl(DeclContext *DC, SourceLocation StartLoc, Module *Imported,
 4275              SourceLocation EndLoc);
 4282                             SourceLocation StartLoc, Module *Imported,
 4283                             ArrayRef<SourceLocation> IdentifierLocs);
 4288                                     SourceLocation StartLoc, Module *Imported,
 4289                                     SourceLocation EndLoc);
 4303   ArrayRef<SourceLocation> getIdentifierLocs() const;
 4324   SourceLocation RBraceLoc;
 4326   ExportDecl(DeclContext *DC, SourceLocation ExportLoc)
 4332                             SourceLocation ExportLoc);
 4335   SourceLocation getExportLoc() const { return getLocation(); }
 4336   SourceLocation getRBraceLoc() const { return RBraceLoc; }
 4337   void setRBraceLoc(SourceLocation L) { RBraceLoc = L; }
 4341   SourceLocation getEndLoc() const LLVM_READONLY {
 4365   EmptyDecl(DeclContext *DC, SourceLocation L) : Decl(Empty, DC, L) {}
 4371                            SourceLocation L);
tools/clang/include/clang/AST/DeclBase.h
  281   SourceLocation Loc;
  379   Decl(Kind DK, DeclContext *DC, SourceLocation L)
  421   SourceLocation getBeginLoc() const LLVM_READONLY {
  425   SourceLocation getEndLoc() const LLVM_READONLY {
  429   SourceLocation getLocation() const { return Loc; }
  430   void setLocation(SourceLocation L) { Loc = L; }
  996   SourceLocation getBodyRBrace() const;
 1180   SourceLocation Loc;
 1185   PrettyStackTraceDecl(const Decl *theDecl, SourceLocation L,
 1641     SourceLocation AtStart;
tools/clang/include/clang/AST/DeclCXX.h
   89   SourceLocation ColonLoc;
   92                  SourceLocation ASLoc, SourceLocation ColonLoc)
   92                  SourceLocation ASLoc, SourceLocation ColonLoc)
  103   SourceLocation getAccessSpecifierLoc() const { return getLocation(); }
  106   void setAccessSpecifierLoc(SourceLocation ASLoc) { setLocation(ASLoc); }
  109   SourceLocation getColonLoc() const { return ColonLoc; }
  112   void setColonLoc(SourceLocation CLoc) { ColonLoc = CLoc; }
  119                                 DeclContext *DC, SourceLocation ASLoc,
  120                                 SourceLocation ColonLoc) {
  155   SourceLocation EllipsisLoc;
  185                    TypeSourceInfo *TInfo, SourceLocation EllipsisLoc)
  191   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
  192   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
  195   SourceLocation getBaseTypeLoc() const LLVM_READONLY {
  218   SourceLocation getEllipsisLoc() const {
  484                 SourceLocation StartLoc, SourceLocation IdLoc,
  484                 SourceLocation StartLoc, SourceLocation IdLoc,
  545                                SourceLocation StartLoc, SourceLocation IdLoc,
  545                                SourceLocation StartLoc, SourceLocation IdLoc,
  550                                      TypeSourceInfo *Info, SourceLocation Loc,
 1851   CXXDeductionGuideDecl(ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
 1854                         TypeSourceInfo *TInfo, SourceLocation EndLocation)
 1871   Create(ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
 1873          TypeSourceInfo *TInfo, SourceLocation EndLocation);
 1910                 SourceLocation StartLoc, const DeclarationNameInfo &NameInfo,
 1913                 SourceLocation EndLocation)
 1922                                SourceLocation StartLoc,
 1926                                SourceLocation EndLocation);
 2150   SourceLocation MemberOrEllipsisLocation;
 2157   SourceLocation LParenLoc;
 2160   SourceLocation RParenLoc;
 2182                      SourceLocation L, Expr *Init, SourceLocation R,
 2182                      SourceLocation L, Expr *Init, SourceLocation R,
 2183                      SourceLocation EllipsisLoc);
 2188                      SourceLocation MemberLoc, SourceLocation L, Expr *Init,
 2188                      SourceLocation MemberLoc, SourceLocation L, Expr *Init,
 2189                      SourceLocation R);
 2194                      SourceLocation MemberLoc, SourceLocation L, Expr *Init,
 2194                      SourceLocation MemberLoc, SourceLocation L, Expr *Init,
 2195                      SourceLocation R);
 2200                      SourceLocation L, Expr *Init, SourceLocation R);
 2200                      SourceLocation L, Expr *Init, SourceLocation R);
 2244   SourceLocation getEllipsisLoc() const {
 2293   SourceLocation getMemberLocation() const {
 2298   SourceLocation getSourceLocation() const;
 2331   SourceLocation getLParenLoc() const { return LParenLoc; }
 2332   SourceLocation getRParenLoc() const { return RParenLoc; }
 2377   CXXConstructorDecl(ASTContext &C, CXXRecordDecl *RD, SourceLocation StartLoc,
 2430   Create(ASTContext &C, CXXRecordDecl *RD, SourceLocation StartLoc,
 2638   CXXDestructorDecl(ASTContext &C, CXXRecordDecl *RD, SourceLocation StartLoc,
 2651                                    SourceLocation StartLoc,
 2691   CXXConversionDecl(ASTContext &C, CXXRecordDecl *RD, SourceLocation StartLoc,
 2694                     ConstexprSpecKind ConstexprKind, SourceLocation EndLocation)
 2709   Create(ASTContext &C, CXXRecordDecl *RD, SourceLocation StartLoc,
 2712          SourceLocation EndLocation);
 2773   SourceLocation ExternLoc;
 2776   SourceLocation RBraceLoc;
 2778   LinkageSpecDecl(DeclContext *DC, SourceLocation ExternLoc,
 2779                   SourceLocation LangLoc, LanguageIDs lang, bool HasBraces);
 2783                                  SourceLocation ExternLoc,
 2784                                  SourceLocation LangLoc, LanguageIDs Lang,
 2803   SourceLocation getExternLoc() const { return ExternLoc; }
 2804   SourceLocation getRBraceLoc() const { return RBraceLoc; }
 2805   void setExternLoc(SourceLocation L) { ExternLoc = L; }
 2806   void setRBraceLoc(SourceLocation L) {
 2811   SourceLocation getEndLoc() const LLVM_READONLY {
 2847   SourceLocation UsingLoc;
 2850   SourceLocation NamespaceLoc;
 2862   UsingDirectiveDecl(DeclContext *DC, SourceLocation UsingLoc,
 2863                      SourceLocation NamespcLoc,
 2865                      SourceLocation IdentLoc,
 2916   SourceLocation getUsingLoc() const { return UsingLoc; }
 2920   SourceLocation getNamespaceKeyLocation() const { return NamespaceLoc; }
 2923   SourceLocation getIdentLocation() const { return getLocation(); }
 2926                                     SourceLocation UsingLoc,
 2927                                     SourceLocation NamespaceLoc,
 2929                                     SourceLocation IdentLoc,
 2954   SourceLocation NamespaceLoc;
 2959   SourceLocation IdentLoc;
 2969                      SourceLocation NamespaceLoc, SourceLocation AliasLoc,
 2969                      SourceLocation NamespaceLoc, SourceLocation AliasLoc,
 2971                      SourceLocation IdentLoc, NamedDecl *Namespace)
 2986                                     SourceLocation NamespaceLoc,
 2987                                     SourceLocation AliasLoc,
 2990                                     SourceLocation IdentLoc,
 3035   SourceLocation getAliasLoc() const { return getLocation(); }
 3038   SourceLocation getNamespaceLoc() const { return NamespaceLoc; }
 3041   SourceLocation getTargetNameLoc() const { return IdentLoc; }
 3095   UsingShadowDecl(Kind K, ASTContext &C, DeclContext *DC, SourceLocation Loc,
 3104                                  SourceLocation Loc, UsingDecl *Using,
 3186   ConstructorUsingShadowDecl(ASTContext &C, DeclContext *DC, SourceLocation Loc,
 3216                                             SourceLocation Loc,
 3277   SourceLocation UsingLocation;
 3293   UsingDecl(DeclContext *DC, SourceLocation UL,
 3308   SourceLocation getUsingLoc() const { return UsingLocation; }
 3311   void setUsingLoc(SourceLocation L) { UsingLocation = L; }
 3395                            SourceLocation UsingL,
 3497   SourceLocation UsingLocation;
 3500   SourceLocation EllipsisLoc;
 3510                            SourceLocation UsingLoc,
 3513                            SourceLocation EllipsisLoc)
 3526   SourceLocation getUsingLoc() const { return UsingLocation; }
 3529   void setUsingLoc(SourceLocation L) { UsingLocation = L; }
 3553   SourceLocation getEllipsisLoc() const {
 3558     Create(ASTContext &C, DeclContext *DC, SourceLocation UsingLoc,
 3560            const DeclarationNameInfo &NameInfo, SourceLocation EllipsisLoc);
 3596   SourceLocation TypenameLocation;
 3599   SourceLocation EllipsisLoc;
 3604   UnresolvedUsingTypenameDecl(DeclContext *DC, SourceLocation UsingLoc,
 3605                               SourceLocation TypenameLoc,
 3607                               SourceLocation TargetNameLoc,
 3609                               SourceLocation EllipsisLoc)
 3619   SourceLocation getUsingLoc() const { return getBeginLoc(); }
 3622   SourceLocation getTypenameLoc() const { return TypenameLocation; }
 3643   SourceLocation getEllipsisLoc() const {
 3648     Create(ASTContext &C, DeclContext *DC, SourceLocation UsingLoc,
 3649            SourceLocation TypenameLoc, NestedNameSpecifierLoc QualifierLoc,
 3650            SourceLocation TargetNameLoc, DeclarationName TargetName,
 3651            SourceLocation EllipsisLoc);
 3672   SourceLocation RParenLoc;
 3674   StaticAssertDecl(DeclContext *DC, SourceLocation StaticAssertLoc,
 3676                    SourceLocation RParenLoc, bool Failed)
 3687                                   SourceLocation StaticAssertLoc,
 3689                                   SourceLocation RParenLoc, bool Failed);
 3700   SourceLocation getRParenLoc() const { return RParenLoc; }
 3727   BindingDecl(DeclContext *DC, SourceLocation IdLoc, IdentifierInfo *Id)
 3736                              SourceLocation IdLoc, IdentifierInfo *Id);
 3781   DecompositionDecl(ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
 3782                     SourceLocation LSquareLoc, QualType T,
 3801                                    SourceLocation StartLoc,
 3802                                    SourceLocation LSquareLoc,
 3849   MSPropertyDecl(DeclContext *DC, SourceLocation L, DeclarationName N,
 3850                  QualType T, TypeSourceInfo *TInfo, SourceLocation StartL,
 3860                                 SourceLocation L, DeclarationName N, QualType T,
 3861                                 TypeSourceInfo *TInfo, SourceLocation StartL,
tools/clang/include/clang/AST/DeclFriend.h
   72   SourceLocation FriendLoc;
   84   FriendDecl(DeclContext *DC, SourceLocation L, FriendUnion Friend,
   85              SourceLocation FriendL,
  112                             SourceLocation L, FriendUnion Friend_,
  113                             SourceLocation FriendL,
  143   SourceLocation getFriendLoc() const {
  163       SourceLocation StartL =
tools/clang/include/clang/AST/DeclObjC.h
  102   SourceLocation *Locations = nullptr;
  109   using loc_iterator = const SourceLocation *;
  115            const SourceLocation *Locs, ASTContext &Ctx);
  158   SourceLocation DeclEndLoc; // the location of the ';' or '{'.
  171   ObjCMethodDecl(SourceLocation beginLoc, SourceLocation endLoc,
  171   ObjCMethodDecl(SourceLocation beginLoc, SourceLocation endLoc,
  193   SourceLocation *getStoredSelLocs() {
  196   const SourceLocation *getStoredSelLocs() const {
  219                            ArrayRef<SourceLocation> SelLocs);
  231   Create(ASTContext &C, SourceLocation beginLoc, SourceLocation endLoc,
  231   Create(ASTContext &C, SourceLocation beginLoc, SourceLocation endLoc,
  279   SourceLocation getDeclaratorEndLoc() const { return DeclEndLoc; }
  282   SourceLocation getBeginLoc() const LLVM_READONLY { return getLocation(); }
  283   SourceLocation getEndLoc() const LLVM_READONLY;
  288   SourceLocation getSelectorStartLoc() const {
  294   SourceLocation getSelectorLoc(unsigned Index) const {
  304   void getSelectorLocs(SmallVectorImpl<SourceLocation> &SelLocs) const;
  384                        ArrayRef<SourceLocation> SelLocs = llvm::None);
  566   SourceLocation VarianceLoc;
  570   SourceLocation ColonLoc;
  573                     ObjCTypeParamVariance variance, SourceLocation varianceLoc,
  575                     SourceLocation nameLoc, IdentifierInfo *name,
  576                     SourceLocation colonLoc, TypeSourceInfo *boundInfo)
  590                                    SourceLocation varianceLoc,
  592                                    SourceLocation nameLoc,
  594                                    SourceLocation colonLoc,
  611   SourceLocation getVarianceLoc() const { return VarianceLoc; }
  622   SourceLocation getColonLoc() const { return ColonLoc; }
  655   ObjCTypeParamList(SourceLocation lAngleLoc,
  657                     SourceLocation rAngleLoc);
  664                                    SourceLocation lAngleLoc,
  666                                    SourceLocation rAngleLoc);
  699   SourceLocation getLAngleLoc() const {
  700     return SourceLocation::getFromRawEncoding(Brackets.Begin);
  703   SourceLocation getRAngleLoc() const {
  704     return SourceLocation::getFromRawEncoding(Brackets.End);
  764   SourceLocation AtLoc;
  767   SourceLocation LParenLoc;
  784   SourceLocation GetterNameLoc;
  787   SourceLocation SetterNameLoc;
  798   ObjCPropertyDecl(DeclContext *DC, SourceLocation L, IdentifierInfo *Id,
  799                    SourceLocation AtLocation,  SourceLocation LParenLocation,
  799                    SourceLocation AtLocation,  SourceLocation LParenLocation,
  811                                   SourceLocation L,
  812                                   IdentifierInfo *Id, SourceLocation AtLocation,
  813                                   SourceLocation LParenLocation,
  820   SourceLocation getAtLoc() const { return AtLoc; }
  821   void setAtLoc(SourceLocation L) { AtLoc = L; }
  823   SourceLocation getLParenLoc() const { return LParenLoc; }
  824   void setLParenLoc(SourceLocation L) { LParenLoc = L; }
  906   SourceLocation getGetterNameLoc() const { return GetterNameLoc; }
  908   void setGetterName(Selector Sel, SourceLocation Loc = SourceLocation()) {
  914   SourceLocation getSetterNameLoc() const { return SetterNameLoc; }
  916   void setSetterName(Selector Sel, SourceLocation Loc = SourceLocation()) {
  980                     SourceLocation nameLoc, SourceLocation atStartLoc);
  980                     SourceLocation nameLoc, SourceLocation atStartLoc);
 1114   SourceLocation getAtStartLoc() const { return ObjCContainerDeclBits.AtStart; }
 1116   void setAtStartLoc(SourceLocation Loc) {
 1234     SourceLocation EndLoc;
 1252   ObjCInterfaceDecl(const ASTContext &C, DeclContext *DC, SourceLocation AtLoc,
 1254                     SourceLocation CLoc, ObjCInterfaceDecl *PrevDecl,
 1285                                    SourceLocation atLoc,
 1289                                    SourceLocation ClassLoc = SourceLocation(),
 1492                        const SourceLocation *Locs, ASTContext &C) {
 1877   SourceLocation getEndOfDefinitionLoc() const {
 1884   void setEndOfDefinitionLoc(SourceLocation LE) { data().EndLoc = LE; }
 1887   SourceLocation getSuperClassLoc() const;
 1953   ObjCIvarDecl(ObjCContainerDecl *DC, SourceLocation StartLoc,
 1954                SourceLocation IdLoc, IdentifierInfo *Id,
 1963                               SourceLocation StartLoc, SourceLocation IdLoc,
 1963                               SourceLocation StartLoc, SourceLocation IdLoc,
 2012   ObjCAtDefsFieldDecl(DeclContext *DC, SourceLocation StartLoc,
 2013                       SourceLocation IdLoc, IdentifierInfo *Id,
 2023                                      SourceLocation StartLoc,
 2024                                      SourceLocation IdLoc, IdentifierInfo *Id,
 2081                    SourceLocation nameLoc, SourceLocation atStartLoc,
 2081                    SourceLocation nameLoc, SourceLocation atStartLoc,
 2114                                   SourceLocation nameLoc,
 2115                                   SourceLocation atStartLoc,
 2177                        const SourceLocation *Locs, ASTContext &C) {
 2294   SourceLocation CategoryNameLoc;
 2297   SourceLocation IvarLBraceLoc;
 2298   SourceLocation IvarRBraceLoc;
 2300   ObjCCategoryDecl(DeclContext *DC, SourceLocation AtLoc,
 2301                    SourceLocation ClassNameLoc, SourceLocation CategoryNameLoc,
 2301                    SourceLocation ClassNameLoc, SourceLocation CategoryNameLoc,
 2304                    SourceLocation IvarLBraceLoc = SourceLocation(),
 2305                    SourceLocation IvarRBraceLoc = SourceLocation());
 2314                                   SourceLocation AtLoc,
 2315                                   SourceLocation ClassNameLoc,
 2316                                   SourceLocation CategoryNameLoc,
 2320                                   SourceLocation IvarLBraceLoc=SourceLocation(),
 2321                                   SourceLocation IvarRBraceLoc=SourceLocation());
 2344                        const SourceLocation *Locs, ASTContext &C) {
 2412   SourceLocation getCategoryNameLoc() const { return CategoryNameLoc; }
 2413   void setCategoryNameLoc(SourceLocation Loc) { CategoryNameLoc = Loc; }
 2415   void setIvarLBraceLoc(SourceLocation Loc) { IvarLBraceLoc = Loc; }
 2416   SourceLocation getIvarLBraceLoc() const { return IvarLBraceLoc; }
 2417   void setIvarRBraceLoc(SourceLocation Loc) { IvarRBraceLoc = Loc; }
 2418   SourceLocation getIvarRBraceLoc() const { return IvarRBraceLoc; }
 2434                SourceLocation nameLoc, SourceLocation atStartLoc)
 2434                SourceLocation nameLoc, SourceLocation atStartLoc)
 2500   SourceLocation CategoryNameLoc;
 2504                        SourceLocation nameLoc, SourceLocation atStartLoc,
 2504                        SourceLocation nameLoc, SourceLocation atStartLoc,
 2505                        SourceLocation CategoryNameLoc)
 2519                                       SourceLocation nameLoc,
 2520                                       SourceLocation atStartLoc,
 2521                                       SourceLocation CategoryNameLoc);
 2526   SourceLocation getCategoryNameLoc() const { return CategoryNameLoc; }
 2554   SourceLocation SuperLoc;
 2557   SourceLocation IvarLBraceLoc;
 2558   SourceLocation IvarRBraceLoc;
 2575                          SourceLocation nameLoc, SourceLocation atStartLoc,
 2575                          SourceLocation nameLoc, SourceLocation atStartLoc,
 2576                          SourceLocation superLoc = SourceLocation(),
 2577                          SourceLocation IvarLBraceLoc=SourceLocation(),
 2578                          SourceLocation IvarRBraceLoc=SourceLocation())
 2596                                         SourceLocation nameLoc,
 2597                                         SourceLocation atStartLoc,
 2598                                      SourceLocation superLoc = SourceLocation(),
 2599                                         SourceLocation IvarLBraceLoc=SourceLocation(),
 2600                                         SourceLocation IvarRBraceLoc=SourceLocation());
 2690   SourceLocation getSuperClassLoc() const { return SuperLoc; }
 2694   void setIvarLBraceLoc(SourceLocation Loc) { IvarLBraceLoc = Loc; }
 2695   SourceLocation getIvarLBraceLoc() const { return IvarLBraceLoc; }
 2696   void setIvarRBraceLoc(SourceLocation Loc) { IvarRBraceLoc = Loc; }
 2697   SourceLocation getIvarRBraceLoc() const { return IvarRBraceLoc; }
 2732   ObjCCompatibleAliasDecl(DeclContext *DC, SourceLocation L, IdentifierInfo *Id,
 2740                                          SourceLocation L, IdentifierInfo *Id,
 2766   SourceLocation AtLoc;   // location of \@synthesize or \@dynamic
 2774   SourceLocation IvarLoc;
 2790   ObjCPropertyImplDecl(DeclContext *DC, SourceLocation atLoc, SourceLocation L,
 2790   ObjCPropertyImplDecl(DeclContext *DC, SourceLocation atLoc, SourceLocation L,
 2794                        SourceLocation ivarLoc)
 2804                                       SourceLocation atLoc, SourceLocation L,
 2804                                       SourceLocation atLoc, SourceLocation L,
 2808                                       SourceLocation ivarLoc);
 2814   SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; }
 2815   void setAtLoc(SourceLocation Loc) { AtLoc = Loc; }
 2829   SourceLocation getPropertyIvarDeclLoc() const { return IvarLoc; }
 2832                            SourceLocation IvarLoc) {
tools/clang/include/clang/AST/DeclOpenMP.h
   49   OMPThreadPrivateDecl(Kind DK, DeclContext *DC, SourceLocation L) :
   64                                       SourceLocation L,
  134   OMPDeclareReductionDecl(Kind DK, DeclContext *DC, SourceLocation L,
  145   Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name,
  233   OMPDeclareMapperDecl(Kind DK, DeclContext *DC, SourceLocation L,
  250                                       SourceLocation L, DeclarationName Name,
  318                       SourceLocation StartLoc)
  327                                      SourceLocation StartLoc);
  356   OMPRequiresDecl(Kind DK, DeclContext *DC, SourceLocation L)
  377                                  SourceLocation L, ArrayRef<OMPClause *> CL);
  442   OMPAllocateDecl(Kind DK, DeclContext *DC, SourceLocation L)
  471                                  SourceLocation L, ArrayRef<Expr *> VL,
tools/clang/include/clang/AST/DeclTemplate.h
   71   SourceLocation TemplateLoc;
   74   SourceLocation LAngleLoc, RAngleLoc;
   88   TemplateParameterList(SourceLocation TemplateLoc, SourceLocation LAngleLoc,
   88   TemplateParameterList(SourceLocation TemplateLoc, SourceLocation LAngleLoc,
   89                         ArrayRef<NamedDecl *> Params, SourceLocation RAngleLoc,
  106                                        SourceLocation TemplateLoc,
  107                                        SourceLocation LAngleLoc,
  109                                        SourceLocation RAngleLoc,
  181   SourceLocation getTemplateLoc() const { return TemplateLoc; }
  182   SourceLocation getLAngleLoc() const { return LAngleLoc; }
  183   SourceLocation getRAngleLoc() const { return RAngleLoc; }
  211   FixedSizeTemplateParameterListStorage(SourceLocation TemplateLoc,
  212                                         SourceLocation LAngleLoc,
  214                                         SourceLocation RAngleLoc,
  392   TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name,
  397   TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name,
  480   SourceLocation PointOfInstantiation;
  487       SourceLocation POI, MemberSpecializationInfo *MSInfo)
  508          SourceLocation POI, MemberSpecializationInfo *MSInfo);
  545   SourceLocation getPointOfInstantiation() const {
  551   void setPointOfInstantiation(SourceLocation POI) {
  613   SourceLocation PointOfInstantiation;
  618                            SourceLocation POI = SourceLocation())
  647   SourceLocation getPointOfInstantiation() const {
  652   void setPointOfInstantiation(SourceLocation POI) {
  726   SourceLocation getLAngleLoc() const {
  730   SourceLocation getRAngleLoc() const {
  836                            SourceLocation L, DeclarationName Name,
  984   FunctionTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L,
 1094                                       SourceLocation L,
 1165   TemplateTypeParmDecl(DeclContext *DC, SourceLocation KeyLoc,
 1166                        SourceLocation IdLoc, IdentifierInfo *Id,
 1172                                       SourceLocation KeyLoc,
 1173                                       SourceLocation NameLoc,
 1203   SourceLocation getDefaultArgumentLoc() const;
 1285   NonTypeTemplateParmDecl(DeclContext *DC, SourceLocation StartLoc,
 1286                           SourceLocation IdLoc, unsigned D, unsigned P,
 1292   NonTypeTemplateParmDecl(DeclContext *DC, SourceLocation StartLoc,
 1293                           SourceLocation IdLoc, unsigned D, unsigned P,
 1301   Create(const ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
 1302          SourceLocation IdLoc, unsigned D, unsigned P, IdentifierInfo *Id,
 1306   Create(const ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
 1307          SourceLocation IdLoc, unsigned D, unsigned P, IdentifierInfo *Id,
 1335   SourceLocation getDefaultArgumentLoc() const;
 1459   TemplateTemplateParmDecl(DeclContext *DC, SourceLocation L,
 1465   TemplateTemplateParmDecl(DeclContext *DC, SourceLocation L,
 1478                                           SourceLocation L, unsigned D,
 1483                                           SourceLocation L, unsigned D,
 1565   SourceLocation getDefaultArgumentLoc() const;
 1587     SourceLocation End = getLocation();
 1665     SourceLocation ExternLoc;
 1668     SourceLocation TemplateKeywordLoc;
 1681   SourceLocation PointOfInstantiation;
 1689                                   DeclContext *DC, SourceLocation StartLoc,
 1690                                   SourceLocation IdLoc,
 1703          SourceLocation StartLoc, SourceLocation IdLoc,
 1703          SourceLocation StartLoc, SourceLocation IdLoc,
 1769   SourceLocation getPointOfInstantiation() const {
 1773   void setPointOfInstantiation(SourceLocation Loc) {
 1859   SourceLocation getExternLoc() const {
 1864   void setExternLoc(SourceLocation Loc) {
 1871   void setTemplateKeywordLoc(SourceLocation Loc) {
 1878   SourceLocation getTemplateKeywordLoc() const {
 1923                                          SourceLocation StartLoc,
 1924                                          SourceLocation IdLoc,
 1943          SourceLocation StartLoc, SourceLocation IdLoc,
 1943          SourceLocation StartLoc, SourceLocation IdLoc,
 2098   ClassTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L,
 2129                                    SourceLocation L,
 2282   SourceLocation FriendLoc;
 2284   FriendTemplateDecl(DeclContext *DC, SourceLocation Loc,
 2286                      FriendUnion Friend, SourceLocation FriendLoc)
 2296   Create(ASTContext &Context, DeclContext *DC, SourceLocation Loc,
 2298          SourceLocation FriendLoc);
 2317   SourceLocation getFriendLoc() const {
 2345   TypeAliasTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L,
 2395                                        SourceLocation L,
 2430       DeclContext *DC, SourceLocation Loc, CXXMethodDecl *FD,
 2451   Create(ASTContext &C, DeclContext *DC, SourceLocation Loc, CXXMethodDecl *FD,
 2511     SourceLocation ExternLoc;
 2514     SourceLocation TemplateKeywordLoc;
 2528   SourceLocation PointOfInstantiation;
 2542                                 SourceLocation StartLoc, SourceLocation IdLoc,
 2542                                 SourceLocation StartLoc, SourceLocation IdLoc,
 2556   Create(ASTContext &Context, DeclContext *DC, SourceLocation StartLoc,
 2557          SourceLocation IdLoc, VarTemplateDecl *SpecializedTemplate, QualType T,
 2613   SourceLocation getPointOfInstantiation() const {
 2617   void setPointOfInstantiation(SourceLocation Loc) {
 2703   SourceLocation getExternLoc() const {
 2708   void setExternLoc(SourceLocation Loc) {
 2715   void setTemplateKeywordLoc(SourceLocation Loc) {
 2722   SourceLocation getTemplateKeywordLoc() const {
 2764       ASTContext &Context, DeclContext *DC, SourceLocation StartLoc,
 2765       SourceLocation IdLoc, TemplateParameterList *Params,
 2782   Create(ASTContext &Context, DeclContext *DC, SourceLocation StartLoc,
 2783          SourceLocation IdLoc, TemplateParameterList *Params,
 2917   VarTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L,
 2950                                  SourceLocation L, DeclarationName Name,
 3050   ConceptDecl(DeclContext *DC, SourceLocation L, DeclarationName Name,
 3056                              SourceLocation L, DeclarationName Name,
tools/clang/include/clang/AST/DeclarationName.h
  696   SourceLocation NameLoc;
  705   DeclarationNameInfo(DeclarationName Name, SourceLocation NameLoc)
  708   DeclarationNameInfo(DeclarationName Name, SourceLocation NameLoc,
  719   SourceLocation getLoc() const { return NameLoc; }
  722   void setLoc(SourceLocation L) { NameLoc = L; }
  753      SourceLocation::getFromRawEncoding(LocInfo.CXXOperatorName.BeginOpNameLoc),
  754      SourceLocation::getFromRawEncoding(LocInfo.CXXOperatorName.EndOpNameLoc)
  769   SourceLocation getCXXLiteralOperatorNameLoc() const {
  772     return SourceLocation::
  779   void setCXXLiteralOperatorNameLoc(SourceLocation Loc) {
  798   SourceLocation getBeginLoc() const { return NameLoc; }
  805   SourceLocation getEndLoc() const LLVM_READONLY {
  806     SourceLocation EndLoc = getEndLocPrivate();
  811   SourceLocation getEndLocPrivate() const;
tools/clang/include/clang/AST/DependentDiagnostic.h
   43                                      SourceLocation Loc,
   74   SourceLocation getAccessLoc() const {
   76     return SourceLocation::getFromRawEncoding(AccessData.Loc);
tools/clang/include/clang/AST/Expr.h
  235   SourceLocation getExprLoc() const LLVM_READONLY;
  241   bool isUnusedResultAWarning(const Expr *&WarnExpr, SourceLocation &Loc,
  307   isModifiableLvalue(ASTContext &Ctx, SourceLocation *Loc = nullptr) const;
  398   Classification ClassifyModifiable(ASTContext &Ctx, SourceLocation &Loc) const{
  437   Classification ClassifyImpl(ASTContext &Ctx, SourceLocation *Loc) const;
  507                              SourceLocation *Loc = nullptr,
  510                              SourceLocation *Loc = nullptr) const;
  522                            SourceLocation *Loc = nullptr) const;
 1009   SourceLocation getBeginLoc() const LLVM_READONLY {
 1012   SourceLocation getEndLoc() const LLVM_READONLY {
 1055   OpaqueValueExpr(SourceLocation Loc, QualType T, ExprValueKind VK,
 1080   SourceLocation getLocation() const { return OpaqueValueExprBits.Loc; }
 1082   SourceLocation getBeginLoc() const LLVM_READONLY {
 1085   SourceLocation getEndLoc() const LLVM_READONLY {
 1088   SourceLocation getExprLoc() const LLVM_READONLY {
 1179               SourceLocation TemplateKWLoc, ValueDecl *D,
 1195               ExprValueKind VK, SourceLocation L,
 1201          SourceLocation TemplateKWLoc, ValueDecl *D,
 1202          bool RefersToEnclosingVariableOrCapture, SourceLocation NameLoc,
 1209          SourceLocation TemplateKWLoc, ValueDecl *D,
 1230   SourceLocation getLocation() const { return DeclRefExprBits.Loc; }
 1231   void setLocation(SourceLocation L) { DeclRefExprBits.Loc = L; }
 1232   SourceLocation getBeginLoc() const LLVM_READONLY;
 1233   SourceLocation getEndLoc() const LLVM_READONLY;
 1275   SourceLocation getTemplateKeywordLoc() const {
 1283   SourceLocation getLAngleLoc() const {
 1291   SourceLocation getRAngleLoc() const {
 1422   SourceLocation Loc;
 1432                  SourceLocation l);
 1439                                 QualType type, SourceLocation l);
 1443   SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
 1444   SourceLocation getEndLoc() const LLVM_READONLY { return Loc; }
 1447   SourceLocation getLocation() const { return Loc; }
 1449   void setLocation(SourceLocation Location) { Loc = Location; }
 1465   SourceLocation Loc;
 1474                     SourceLocation l, unsigned Scale);
 1479                                              QualType type, SourceLocation l,
 1482   SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
 1483   SourceLocation getEndLoc() const LLVM_READONLY { return Loc; }
 1486   SourceLocation getLocation() const { return Loc; }
 1488   void setLocation(SourceLocation Location) { Loc = Location; }
 1517   SourceLocation Loc;
 1521                    SourceLocation l)
 1531   SourceLocation getLocation() const { return Loc; }
 1536   SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
 1537   SourceLocation getEndLoc() const LLVM_READONLY { return Loc; }
 1541   void setLocation(SourceLocation Location) { Loc = Location; }
 1559   SourceLocation Loc;
 1562                   QualType Type, SourceLocation L);
 1569                                  bool isexact, QualType Type, SourceLocation L);
 1613   SourceLocation getLocation() const { return Loc; }
 1614   void setLocation(SourceLocation L) { Loc = L; }
 1616   SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
 1617   SourceLocation getEndLoc() const LLVM_READONLY { return Loc; }
 1653   SourceLocation getBeginLoc() const LLVM_READONLY {
 1656   SourceLocation getEndLoc() const LLVM_READONLY { return Val->getEndLoc(); }
 1688       private llvm::TrailingObjects<StringLiteral, unsigned, SourceLocation,
 1712   unsigned numTrailingObjects(OverloadToken<SourceLocation>) const {
 1733                 bool Pascal, QualType Ty, const SourceLocation *Loc,
 1744   void setStrTokenLoc(unsigned TokNum, SourceLocation L) {
 1746     getTrailingObjects<SourceLocation>()[TokNum] = L;
 1754                                const SourceLocation *Loc,
 1760                                SourceLocation Loc) {
 1833   SourceLocation getStrTokenLoc(unsigned TokNum) const {
 1835     return getTrailingObjects<SourceLocation>()[TokNum];
 1845   SourceLocation
 1851   typedef const SourceLocation *tokloc_iterator;
 1854     return getTrailingObjects<SourceLocation>();
 1858     return getTrailingObjects<SourceLocation>() + getNumConcatenated();
 1861   SourceLocation getBeginLoc() const LLVM_READONLY { return *tokloc_begin(); }
 1862   SourceLocation getEndLoc() const LLVM_READONLY { return *(tokloc_end() - 1); }
 1903   PredefinedExpr(SourceLocation L, QualType FNTy, IdentKind IK,
 1919   static PredefinedExpr *Create(const ASTContext &Ctx, SourceLocation L,
 1930   SourceLocation getLocation() const { return PredefinedExprBits.Loc; }
 1931   void setLocation(SourceLocation L) { PredefinedExprBits.Loc = L; }
 1948   SourceLocation getBeginLoc() const { return getLocation(); }
 1949   SourceLocation getEndLoc() const { return getLocation(); }
 1970   SourceLocation L, R;
 1973   ParenExpr(SourceLocation l, SourceLocation r, Expr *val)
 1973   ParenExpr(SourceLocation l, SourceLocation r, Expr *val)
 1989   SourceLocation getBeginLoc() const LLVM_READONLY { return L; }
 1990   SourceLocation getEndLoc() const LLVM_READONLY { return R; }
 1993   SourceLocation getLParen() const { return L; }
 1994   void setLParen(SourceLocation Loc) { L = Loc; }
 1997   SourceLocation getRParen() const { return R; }
 1998   void setRParen(SourceLocation Loc) { R = Loc; }
 2028                 ExprObjectKind OK, SourceLocation l, bool CanOverflow)
 2055   SourceLocation getOperatorLoc() const { return UnaryOperatorBits.Loc; }
 2056   void setOperatorLoc(SourceLocation L) { UnaryOperatorBits.Loc = L; }
 2116   SourceLocation getBeginLoc() const LLVM_READONLY {
 2119   SourceLocation getEndLoc() const LLVM_READONLY {
 2122   SourceLocation getExprLoc() const { return getOperatorLoc(); }
 2172   OffsetOfNode(SourceLocation LBracketLoc, unsigned Index,
 2173                SourceLocation RBracketLoc)
 2177   OffsetOfNode(SourceLocation DotLoc, FieldDecl *Field, SourceLocation NameLoc)
 2177   OffsetOfNode(SourceLocation DotLoc, FieldDecl *Field, SourceLocation NameLoc)
 2182   OffsetOfNode(SourceLocation DotLoc, IdentifierInfo *Name,
 2183                SourceLocation NameLoc)
 2224   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
 2225   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
 2245   SourceLocation OperatorLoc, RParenLoc;
 2258                SourceLocation OperatorLoc, TypeSourceInfo *tsi,
 2260                SourceLocation RParenLoc);
 2269                               SourceLocation OperatorLoc, TypeSourceInfo *tsi,
 2271                               ArrayRef<Expr*> exprs, SourceLocation RParenLoc);
 2277   SourceLocation getOperatorLoc() const { return OperatorLoc; }
 2278   void setOperatorLoc(SourceLocation L) { OperatorLoc = L; }
 2281   SourceLocation getRParenLoc() const { return RParenLoc; }
 2282   void setRParenLoc(SourceLocation R) { RParenLoc = R; }
 2324   SourceLocation getBeginLoc() const LLVM_READONLY { return OperatorLoc; }
 2325   SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; }
 2352   SourceLocation OpLoc, RParenLoc;
 2356                            QualType resultType, SourceLocation op,
 2357                            SourceLocation rp) :
 2371                            QualType resultType, SourceLocation op,
 2372                            SourceLocation rp);
 2414   SourceLocation getOperatorLoc() const { return OpLoc; }
 2415   void setOperatorLoc(SourceLocation L) { OpLoc = L; }
 2417   SourceLocation getRParenLoc() const { return RParenLoc; }
 2418   void setRParenLoc(SourceLocation L) { RParenLoc = L; }
 2420   SourceLocation getBeginLoc() const LLVM_READONLY { return OpLoc; }
 2421   SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; }
 2446                      SourceLocation rbracketloc)
 2486   SourceLocation getBeginLoc() const LLVM_READONLY {
 2489   SourceLocation getEndLoc() const { return getRBracketLoc(); }
 2491   SourceLocation getRBracketLoc() const {
 2494   void setRBracketLoc(SourceLocation L) {
 2498   SourceLocation getExprLoc() const LLVM_READONLY {
 2529   SourceLocation RParenLoc;
 2577            SourceLocation RParenLoc, unsigned MinNumArgs, ADLCallKind UsesADL);
 2619                           SourceLocation RParenLoc, unsigned MinNumArgs = 0,
 2631                                    ExprValueKind VK, SourceLocation RParenLoc,
 2764   SourceLocation getRParenLoc() const { return RParenLoc; }
 2765   void setRParenLoc(SourceLocation L) { RParenLoc = L; }
 2767   SourceLocation getBeginLoc() const LLVM_READONLY;
 2768   SourceLocation getEndLoc() const LLVM_READONLY;
 2834   SourceLocation MemberLoc;
 2852   MemberExpr(Expr *Base, bool IsArrow, SourceLocation OperatorLoc,
 2861                             SourceLocation OperatorLoc,
 2863                             SourceLocation TemplateKWLoc, ValueDecl *MemberDecl,
 2928   SourceLocation getTemplateKeywordLoc() const {
 2936   SourceLocation getLAngleLoc() const {
 2944   SourceLocation getRAngleLoc() const {
 2993   SourceLocation getOperatorLoc() const { return MemberExprBits.OperatorLoc; }
 3000   SourceLocation getMemberLoc() const { return MemberLoc; }
 3001   void setMemberLoc(SourceLocation L) { MemberLoc = L; }
 3003   SourceLocation getBeginLoc() const LLVM_READONLY;
 3004   SourceLocation getEndLoc() const LLVM_READONLY;
 3006   SourceLocation getExprLoc() const LLVM_READONLY { return MemberLoc; }
 3056   SourceLocation LParenLoc;
 3064   CompoundLiteralExpr(SourceLocation lparenloc, TypeSourceInfo *tinfo,
 3085   SourceLocation getLParenLoc() const { return LParenLoc; }
 3086   void setLParenLoc(SourceLocation L) { LParenLoc = L; }
 3095   SourceLocation getBeginLoc() const LLVM_READONLY {
 3103   SourceLocation getEndLoc() const LLVM_READONLY {
 3281   SourceLocation getBeginLoc() const LLVM_READONLY {
 3284   SourceLocation getEndLoc() const LLVM_READONLY {
 3349   SourceLocation LPLoc; // the location of the left paren
 3350   SourceLocation RPLoc; // the location of the right paren
 3354                  SourceLocation l, SourceLocation r)
 3354                  SourceLocation l, SourceLocation r)
 3366                                 TypeSourceInfo *WrittenTy, SourceLocation L,
 3367                                 SourceLocation R);
 3372   SourceLocation getLParenLoc() const { return LPLoc; }
 3373   void setLParenLoc(SourceLocation L) { LPLoc = L; }
 3375   SourceLocation getRParenLoc() const { return RPLoc; }
 3376   void setRParenLoc(SourceLocation L) { RPLoc = L; }
 3378   SourceLocation getBeginLoc() const LLVM_READONLY { return LPLoc; }
 3379   SourceLocation getEndLoc() const LLVM_READONLY {
 3418                  SourceLocation opLoc, FPOptions FPFeatures)
 3440   SourceLocation getExprLoc() const { return getOperatorLoc(); }
 3441   SourceLocation getOperatorLoc() const { return BinaryOperatorBits.OpLoc; }
 3442   void setOperatorLoc(SourceLocation L) { BinaryOperatorBits.OpLoc = L; }
 3454   SourceLocation getBeginLoc() const LLVM_READONLY {
 3457   SourceLocation getEndLoc() const LLVM_READONLY {
 3603                  SourceLocation opLoc, FPOptions FPFeatures, bool dead2)
 3636                          SourceLocation OpLoc, FPOptions FPFeatures)
 3666   SourceLocation QuestionLoc, ColonLoc;
 3674                               SourceLocation qloc,
 3675                               SourceLocation cloc)
 3696   SourceLocation getQuestionLoc() const { return QuestionLoc; }
 3697   SourceLocation getColonLoc() const { return ColonLoc; }
 3713   ConditionalOperator(Expr *cond, SourceLocation QLoc, Expr *lhs,
 3714                       SourceLocation CLoc, Expr *rhs,
 3755   SourceLocation getBeginLoc() const LLVM_READONLY {
 3758   SourceLocation getEndLoc() const LLVM_READONLY {
 3795                             SourceLocation qloc, SourceLocation cloc,
 3795                             SourceLocation qloc, SourceLocation cloc,
 3843   SourceLocation getBeginLoc() const LLVM_READONLY {
 3846   SourceLocation getEndLoc() const LLVM_READONLY {
 3883   SourceLocation AmpAmpLoc, LabelLoc;
 3886   AddrLabelExpr(SourceLocation AALoc, SourceLocation LLoc, LabelDecl *L,
 3886   AddrLabelExpr(SourceLocation AALoc, SourceLocation LLoc, LabelDecl *L,
 3896   SourceLocation getAmpAmpLoc() const { return AmpAmpLoc; }
 3897   void setAmpAmpLoc(SourceLocation L) { AmpAmpLoc = L; }
 3898   SourceLocation getLabelLoc() const { return LabelLoc; }
 3899   void setLabelLoc(SourceLocation L) { LabelLoc = L; }
 3901   SourceLocation getBeginLoc() const LLVM_READONLY { return AmpAmpLoc; }
 3902   SourceLocation getEndLoc() const LLVM_READONLY { return LabelLoc; }
 3928   SourceLocation LParenLoc, RParenLoc;
 3934            SourceLocation lp, SourceLocation rp) :
 3934            SourceLocation lp, SourceLocation rp) :
 3946   SourceLocation getBeginLoc() const LLVM_READONLY { return LParenLoc; }
 3947   SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; }
 3949   SourceLocation getLParenLoc() const { return LParenLoc; }
 3950   void setLParenLoc(SourceLocation L) { LParenLoc = L; }
 3951   SourceLocation getRParenLoc() const { return RParenLoc; }
 3952   void setRParenLoc(SourceLocation L) { RParenLoc = L; }
 3972   SourceLocation BuiltinLoc, RParenLoc;
 3983                     SourceLocation BLoc, SourceLocation RP);
 3983                     SourceLocation BLoc, SourceLocation RP);
 3989   SourceLocation getBuiltinLoc() const { return BuiltinLoc; }
 3990   void setBuiltinLoc(SourceLocation L) { BuiltinLoc = L; }
 3992   SourceLocation getRParenLoc() const { return RParenLoc; }
 3993   void setRParenLoc(SourceLocation L) { RParenLoc = L; }
 3995   SourceLocation getBeginLoc() const LLVM_READONLY { return BuiltinLoc; }
 3996   SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; }
 4043   SourceLocation BuiltinLoc, RParenLoc;
 4052              SourceLocation BuiltinLoc, SourceLocation RParenLoc)
 4052              SourceLocation BuiltinLoc, SourceLocation RParenLoc)
 4074   SourceLocation getBuiltinLoc() const { return BuiltinLoc; }
 4077   SourceLocation getRParenLoc() const { return RParenLoc; }
 4079   SourceLocation getBeginLoc() const LLVM_READONLY { return BuiltinLoc; }
 4080   SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; }
 4105   SourceLocation BuiltinLoc, RParenLoc;
 4108   ChooseExpr(SourceLocation BLoc, Expr *cond, Expr *lhs, Expr *rhs,
 4110              SourceLocation RP, bool condIsTrue,
 4154   SourceLocation getBuiltinLoc() const { return BuiltinLoc; }
 4155   void setBuiltinLoc(SourceLocation L) { BuiltinLoc = L; }
 4157   SourceLocation getRParenLoc() const { return RParenLoc; }
 4158   void setRParenLoc(SourceLocation L) { RParenLoc = L; }
 4160   SourceLocation getBeginLoc() const LLVM_READONLY { return BuiltinLoc; }
 4161   SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; }
 4184   SourceLocation TokenLoc;
 4187   GNUNullExpr(QualType Ty, SourceLocation Loc)
 4196   SourceLocation getTokenLocation() const { return TokenLoc; }
 4197   void setTokenLocation(SourceLocation L) { TokenLoc = L; }
 4199   SourceLocation getBeginLoc() const LLVM_READONLY { return TokenLoc; }
 4200   SourceLocation getEndLoc() const LLVM_READONLY { return TokenLoc; }
 4219   SourceLocation BuiltinLoc, RParenLoc;
 4221   VAArgExpr(SourceLocation BLoc, Expr *e, TypeSourceInfo *TInfo,
 4222             SourceLocation RPLoc, QualType t, bool IsMS)
 4245   SourceLocation getBuiltinLoc() const { return BuiltinLoc; }
 4246   void setBuiltinLoc(SourceLocation L) { BuiltinLoc = L; }
 4248   SourceLocation getRParenLoc() const { return RParenLoc; }
 4249   void setRParenLoc(SourceLocation L) { RParenLoc = L; }
 4251   SourceLocation getBeginLoc() const LLVM_READONLY { return BuiltinLoc; }
 4252   SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; }
 4268   SourceLocation BuiltinLoc, RParenLoc;
 4274   SourceLocExpr(const ASTContext &Ctx, IdentKind Type, SourceLocation BLoc,
 4275                 SourceLocation RParenLoc, DeclContext *Context);
 4310   SourceLocation getLocation() const { return BuiltinLoc; }
 4311   SourceLocation getBeginLoc() const { return BuiltinLoc; }
 4312   SourceLocation getEndLoc() const { return RParenLoc; }
 4379   SourceLocation LBraceLoc, RBraceLoc;
 4398   InitListExpr(const ASTContext &C, SourceLocation lbraceloc,
 4399                ArrayRef<Expr*> initExprs, SourceLocation rbraceloc);
 4522   SourceLocation getLBraceLoc() const { return LBraceLoc; }
 4523   void setLBraceLoc(SourceLocation Loc) { LBraceLoc = Loc; }
 4524   SourceLocation getRBraceLoc() const { return RBraceLoc; }
 4525   void setRBraceLoc(SourceLocation Loc) { RBraceLoc = Loc; }
 4552   SourceLocation getBeginLoc() const LLVM_READONLY;
 4553   SourceLocation getEndLoc() const LLVM_READONLY;
 4621   SourceLocation EqualOrColonLoc;
 4641                      SourceLocation EqualOrColonLoc, bool GNUSyntax,
 4706     Designator(const IdentifierInfo *FieldName, SourceLocation DotLoc,
 4707                SourceLocation FieldLoc)
 4715     Designator(unsigned Index, SourceLocation LBracketLoc,
 4716                SourceLocation RBracketLoc)
 4725     Designator(unsigned Index, SourceLocation LBracketLoc,
 4726                SourceLocation EllipsisLoc, SourceLocation RBracketLoc)
 4726                SourceLocation EllipsisLoc, SourceLocation RBracketLoc)
 4753     SourceLocation getDotLoc() const {
 4755       return SourceLocation::getFromRawEncoding(Field.DotLoc);
 4758     SourceLocation getFieldLoc() const {
 4760       return SourceLocation::getFromRawEncoding(Field.FieldLoc);
 4763     SourceLocation getLBracketLoc() const {
 4766       return SourceLocation::getFromRawEncoding(ArrayOrRange.LBracketLoc);
 4769     SourceLocation getRBracketLoc() const {
 4772       return SourceLocation::getFromRawEncoding(ArrayOrRange.RBracketLoc);
 4775     SourceLocation getEllipsisLoc() const {
 4778       return SourceLocation::getFromRawEncoding(ArrayOrRange.EllipsisLoc);
 4787     SourceLocation getBeginLoc() const LLVM_READONLY {
 4793     SourceLocation getEndLoc() const LLVM_READONLY {
 4804                                     SourceLocation EqualOrColonLoc,
 4836   SourceLocation getEqualOrColonLoc() const { return EqualOrColonLoc; }
 4837   void setEqualOrColonLoc(SourceLocation L) { EqualOrColonLoc = L; }
 4880   SourceLocation getBeginLoc() const LLVM_READONLY;
 4881   SourceLocation getEndLoc() const LLVM_READONLY;
 4922   SourceLocation getBeginLoc() const LLVM_READONLY { return SourceLocation(); }
 4923   SourceLocation getEndLoc() const LLVM_READONLY { return SourceLocation(); }
 4951   DesignatedInitUpdateExpr(const ASTContext &C, SourceLocation lBraceLoc,
 4952                            Expr *baseExprs, SourceLocation rBraceLoc);
 4957   SourceLocation getBeginLoc() const LLVM_READONLY;
 4958   SourceLocation getEndLoc() const LLVM_READONLY;
 5032   SourceLocation getBeginLoc() const LLVM_READONLY {
 5035   SourceLocation getEndLoc() const LLVM_READONLY {
 5067   SourceLocation getBeginLoc() const LLVM_READONLY { return SourceLocation(); }
 5068   SourceLocation getEndLoc() const LLVM_READONLY { return SourceLocation(); }
 5103   SourceLocation getBeginLoc() const LLVM_READONLY { return SourceLocation(); }
 5104   SourceLocation getEndLoc() const LLVM_READONLY { return SourceLocation(); }
 5122   SourceLocation LParenLoc, RParenLoc;
 5125   ParenListExpr(SourceLocation LParenLoc, ArrayRef<Expr *> Exprs,
 5126                 SourceLocation RParenLoc);
 5133   static ParenListExpr *Create(const ASTContext &Ctx, SourceLocation LParenLoc,
 5135                                SourceLocation RParenLoc);
 5160   SourceLocation getLParenLoc() const { return LParenLoc; }
 5161   SourceLocation getRParenLoc() const { return RParenLoc; }
 5162   SourceLocation getBeginLoc() const { return getLParenLoc(); }
 5163   SourceLocation getEndLoc() const { return getRParenLoc(); }
 5226   SourceLocation DefaultLoc, RParenLoc;
 5326   GenericSelectionExpr(const ASTContext &Context, SourceLocation GenericLoc,
 5329                        ArrayRef<Expr *> AssocExprs, SourceLocation DefaultLoc,
 5330                        SourceLocation RParenLoc,
 5335   GenericSelectionExpr(const ASTContext &Context, SourceLocation GenericLoc,
 5338                        ArrayRef<Expr *> AssocExprs, SourceLocation DefaultLoc,
 5339                        SourceLocation RParenLoc,
 5348   Create(const ASTContext &Context, SourceLocation GenericLoc,
 5350          ArrayRef<Expr *> AssocExprs, SourceLocation DefaultLoc,
 5351          SourceLocation RParenLoc, bool ContainsUnexpandedParameterPack,
 5356   Create(const ASTContext &Context, SourceLocation GenericLoc,
 5358          ArrayRef<Expr *> AssocExprs, SourceLocation DefaultLoc,
 5359          SourceLocation RParenLoc, bool ContainsUnexpandedParameterPack);
 5455   SourceLocation getGenericLoc() const {
 5458   SourceLocation getDefaultLoc() const { return DefaultLoc; }
 5459   SourceLocation getRParenLoc() const { return RParenLoc; }
 5460   SourceLocation getBeginLoc() const { return getGenericLoc(); }
 5461   SourceLocation getEndLoc() const { return getRParenLoc(); }
 5493   SourceLocation AccessorLoc;
 5496                        IdentifierInfo &accessor, SourceLocation loc)
 5515   SourceLocation getAccessorLoc() const { return AccessorLoc; }
 5516   void setAccessorLoc(SourceLocation L) { AccessorLoc = L; }
 5529   SourceLocation getBeginLoc() const LLVM_READONLY {
 5532   SourceLocation getEndLoc() const LLVM_READONLY { return AccessorLoc; }
 5570   SourceLocation getCaretLocation() const;
 5574   SourceLocation getBeginLoc() const LLVM_READONLY {
 5577   SourceLocation getEndLoc() const LLVM_READONLY {
 5603   SourceLocation BuiltinLoc, RParenLoc;
 5612              SourceLocation BuiltinLoc, SourceLocation RParenLoc)
 5612              SourceLocation BuiltinLoc, SourceLocation RParenLoc)
 5626   SourceLocation getBuiltinLoc() const { return BuiltinLoc; }
 5629   SourceLocation getRParenLoc() const { return RParenLoc; }
 5631   SourceLocation getBeginLoc() const LLVM_READONLY { return BuiltinLoc; }
 5632   SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; }
 5769   SourceLocation getExprLoc() const LLVM_READONLY {
 5773   SourceLocation getBeginLoc() const LLVM_READONLY {
 5776   SourceLocation getEndLoc() const LLVM_READONLY {
 5824   SourceLocation BuiltinLoc, RParenLoc;
 5829   AtomicExpr(SourceLocation BLoc, ArrayRef<Expr*> args, QualType t,
 5830              AtomicOp op, SourceLocation RP);
 5897   SourceLocation getBuiltinLoc() const { return BuiltinLoc; }
 5898   SourceLocation getRParenLoc() const { return RParenLoc; }
 5900   SourceLocation getBeginLoc() const LLVM_READONLY { return BuiltinLoc; }
 5901   SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; }
 5954   SourceLocation getBeginLoc() const LLVM_READONLY { return SourceLocation(); }
 5955   SourceLocation getEndLoc() const LLVM_READONLY { return SourceLocation(); }
tools/clang/include/clang/AST/ExprCXX.h
   91                       SourceLocation OperatorLoc, FPOptions FPFeatures,
  100          SourceLocation OperatorLoc, FPOptions FPFeatures,
  129   SourceLocation getOperatorLoc() const { return getRParenLoc(); }
  131   SourceLocation getExprLoc() const LLVM_READONLY {
  139   SourceLocation getBeginLoc() const { return Range.getBegin(); }
  140   SourceLocation getEndLoc() const { return Range.getEnd(); }
  176                     ExprValueKind VK, SourceLocation RP, unsigned MinNumArgs);
  183                                    ExprValueKind VK, SourceLocation RP,
  210   SourceLocation getExprLoc() const LLVM_READONLY {
  211     SourceLocation CLoc = getCallee()->getExprLoc();
  233                      QualType Ty, ExprValueKind VK, SourceLocation RP,
  242                                     SourceLocation RP, unsigned MinNumArgs = 0);
  317   SourceLocation getOperatorLoc() const LLVM_READONLY {
  320   SourceLocation getExprLoc() const LLVM_READONLY { return getOperatorLoc(); }
  326   SourceLocation getBeginLoc() const LLVM_READONLY {
  329   SourceLocation getEndLoc() const LLVM_READONLY {
  356   SourceLocation Loc;
  359   SourceLocation RParenLoc;
  369                    TypeSourceInfo *writtenTy, SourceLocation l,
  370                    SourceLocation RParenLoc,
  383   SourceLocation getOperatorLoc() const { return Loc; }
  386   SourceLocation getRParenLoc() const { return RParenLoc; }
  388   SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
  389   SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; }
  414                     SourceLocation l, SourceLocation RParenLoc,
  414                     SourceLocation l, SourceLocation RParenLoc,
  429                                    TypeSourceInfo *Written, SourceLocation L,
  430                                    SourceLocation RParenLoc,
  450                      SourceLocation l, SourceLocation RParenLoc,
  450                      SourceLocation l, SourceLocation RParenLoc,
  465                                     TypeSourceInfo *Written, SourceLocation L,
  466                                     SourceLocation RParenLoc,
  493                          TypeSourceInfo *writtenTy, SourceLocation l,
  494                          SourceLocation RParenLoc,
  509                                  TypeSourceInfo *WrittenTy, SourceLocation L,
  510                                         SourceLocation RParenLoc,
  531                    TypeSourceInfo *writtenTy, SourceLocation l,
  532                    SourceLocation RParenLoc, SourceRange AngleBrackets)
  545                                   TypeSourceInfo *WrittenTy, SourceLocation L,
  546                                   SourceLocation RParenLoc,
  569   SourceLocation UDSuffixLoc;
  575                      ExprValueKind VK, SourceLocation LitEndLoc,
  576                      SourceLocation SuffixLoc);
  583                                     ExprValueKind VK, SourceLocation LitEndLoc,
  584                                     SourceLocation SuffixLoc);
  622   SourceLocation getBeginLoc() const {
  628   SourceLocation getEndLoc() const { return getRParenLoc(); }
  634   SourceLocation getUDSuffixLoc() const { return UDSuffixLoc; }
  647   CXXBoolLiteralExpr(bool Val, QualType Ty, SourceLocation Loc)
  660   SourceLocation getBeginLoc() const { return getLocation(); }
  661   SourceLocation getEndLoc() const { return getLocation(); }
  663   SourceLocation getLocation() const { return CXXBoolLiteralExprBits.Loc; }
  664   void setLocation(SourceLocation L) { CXXBoolLiteralExprBits.Loc = L; }
  685   CXXNullPtrLiteralExpr(QualType Ty, SourceLocation Loc)
  694   SourceLocation getBeginLoc() const { return getLocation(); }
  695   SourceLocation getEndLoc() const { return getLocation(); }
  697   SourceLocation getLocation() const { return CXXNullPtrLiteralExprBits.Loc; }
  698   void setLocation(SourceLocation L) { CXXNullPtrLiteralExprBits.Loc = L; }
  735   SourceLocation getBeginLoc() const LLVM_READONLY {
  739   SourceLocation getEndLoc() const LLVM_READONLY {
  831   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
  832   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
  866   SourceLocation MemberLoc;
  876                     SourceLocation nameLoc)
  895   SourceLocation getBeginLoc() const {
  904   SourceLocation getEndLoc() const { return getMemberLoc(); }
  922   SourceLocation getMemberLoc() const { return MemberLoc; }
  943   SourceLocation RBracketLoc;
  950                           ExprObjectKind OK, SourceLocation RBracketLoc)
  969   SourceLocation getBeginLoc() const LLVM_READONLY {
  973   SourceLocation getEndLoc() const LLVM_READONLY { return RBracketLoc; }
  975   SourceLocation getRBracketLoc() const { return RBracketLoc; }
  976   void setRBracketLoc(SourceLocation L) { RBracketLoc = L; }
  978   SourceLocation getExprLoc() const LLVM_READONLY {
 1059   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
 1060   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
 1099   CXXThisExpr(SourceLocation L, QualType Ty, bool IsImplicit)
 1112   SourceLocation getLocation() const { return CXXThisExprBits.Loc; }
 1113   void setLocation(SourceLocation L) { CXXThisExprBits.Loc = L; }
 1115   SourceLocation getBeginLoc() const { return getLocation(); }
 1116   SourceLocation getEndLoc() const { return getLocation(); }
 1151   CXXThrowExpr(Expr *Operand, QualType Ty, SourceLocation Loc,
 1165   SourceLocation getThrowLoc() const { return CXXThrowExprBits.ThrowLoc; }
 1176   SourceLocation getBeginLoc() const { return getThrowLoc(); }
 1177   SourceLocation getEndLoc() const LLVM_READONLY {
 1211   CXXDefaultArgExpr(StmtClass SC, SourceLocation Loc, ParmVarDecl *Param,
 1229   static CXXDefaultArgExpr *Create(const ASTContext &C, SourceLocation Loc,
 1248   SourceLocation getUsedLocation() const { return CXXDefaultArgExprBits.Loc; }
 1252   SourceLocation getBeginLoc() const { return SourceLocation(); }
 1253   SourceLocation getEndLoc() const { return SourceLocation(); }
 1255   SourceLocation getExprLoc() const { return getUsedLocation(); }
 1289   CXXDefaultInitExpr(const ASTContext &Ctx, SourceLocation Loc,
 1297   static CXXDefaultInitExpr *Create(const ASTContext &Ctx, SourceLocation Loc,
 1321   SourceLocation getUsedLocation() const { return getBeginLoc(); }
 1323   SourceLocation getBeginLoc() const { return CXXDefaultInitExprBits.Loc; }
 1324   SourceLocation getEndLoc() const { return CXXDefaultInitExprBits.Loc; }
 1400   SourceLocation getBeginLoc() const LLVM_READONLY {
 1404   SourceLocation getEndLoc() const LLVM_READONLY {
 1465   CXXConstructExpr(StmtClass SC, QualType Ty, SourceLocation Loc,
 1484   Create(const ASTContext &Ctx, QualType Ty, SourceLocation Loc,
 1496   SourceLocation getLocation() const { return CXXConstructExprBits.Loc; }
 1497   void setLocation(SourceLocation Loc) { CXXConstructExprBits.Loc = Loc; }
 1588   SourceLocation getBeginLoc() const LLVM_READONLY;
 1589   SourceLocation getEndLoc() const LLVM_READONLY;
 1618   SourceLocation Loc;
 1631   CXXInheritedCtorInitExpr(SourceLocation Loc, QualType T,
 1664   SourceLocation getLocation() const LLVM_READONLY { return Loc; }
 1665   SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
 1666   SourceLocation getEndLoc() const LLVM_READONLY { return Loc; }
 1691   SourceLocation LParenLoc;
 1692   SourceLocation RParenLoc;
 1697                         SourceLocation lParenLoc, SourceLocation rParenLoc)
 1697                         SourceLocation lParenLoc, SourceLocation rParenLoc)
 1714                                        SourceLocation LPLoc,
 1715                                        SourceLocation RPLoc);
 1719   SourceLocation getLParenLoc() const { return LParenLoc; }
 1720   void setLParenLoc(SourceLocation L) { LParenLoc = L; }
 1721   SourceLocation getRParenLoc() const { return RParenLoc; }
 1722   void setRParenLoc(SourceLocation L) { RParenLoc = L; }
 1727   SourceLocation getBeginLoc() const LLVM_READONLY;
 1728   SourceLocation getEndLoc() const LLVM_READONLY;
 1781   SourceLocation getBeginLoc() const LLVM_READONLY;
 1782   SourceLocation getEndLoc() const LLVM_READONLY;
 1824   SourceLocation CaptureDefaultLoc;
 1848   SourceLocation ClosingBrace;
 1853              SourceLocation CaptureDefaultLoc, ArrayRef<LambdaCapture> Captures,
 1855              ArrayRef<Expr *> CaptureInits, SourceLocation ClosingBrace,
 1878          LambdaCaptureDefault CaptureDefault, SourceLocation CaptureDefaultLoc,
 1881          SourceLocation ClosingBrace, bool ContainsUnexpandedParameterPack);
 1894   SourceLocation getCaptureDefaultLoc() const {
 2034   SourceLocation getBeginLoc() const LLVM_READONLY {
 2038   SourceLocation getEndLoc() const LLVM_READONLY { return ClosingBrace; }
 2062                          SourceLocation RParenLoc)
 2077   SourceLocation getRParenLoc() const {
 2081   SourceLocation getBeginLoc() const LLVM_READONLY;
 2082   SourceLocation getEndLoc() const { return getRParenLoc(); }
 2339   SourceLocation getBeginLoc() const { return Range.getBegin(); }
 2340   SourceLocation getEndLoc() const { return Range.getEnd(); }
 2371                 FunctionDecl *OperatorDelete, Expr *Arg, SourceLocation Loc)
 2410   SourceLocation getBeginLoc() const { return CXXDeleteExprBits.Loc; }
 2411   SourceLocation getEndLoc() const LLVM_READONLY {
 2434   SourceLocation Location;
 2439   PseudoDestructorTypeStorage(IdentifierInfo *II, SourceLocation Loc)
 2452   SourceLocation getLocation() const { return Location; }
 2490   SourceLocation OperatorLoc;
 2501   SourceLocation ColonColonLoc;
 2504   SourceLocation TildeLoc;
 2512                           Expr *Base, bool isArrow, SourceLocation OperatorLoc,
 2515                           SourceLocation ColonColonLoc,
 2516                           SourceLocation TildeLoc,
 2545   SourceLocation getOperatorLoc() const { return OperatorLoc; }
 2560   SourceLocation getColonColonLoc() const { return ColonColonLoc; }
 2563   SourceLocation getTildeLoc() const { return TildeLoc; }
 2587   SourceLocation getDestroyedTypeLoc() const {
 2593   void setDestroyedType(IdentifierInfo *II, SourceLocation Loc) {
 2602   SourceLocation getBeginLoc() const LLVM_READONLY {
 2605   SourceLocation getEndLoc() const LLVM_READONLY;
 2631   SourceLocation Loc;
 2634   SourceLocation RParenLoc;
 2639   TypeTraitExpr(QualType T, SourceLocation Loc, TypeTrait Kind,
 2641                 SourceLocation RParenLoc,
 2657                                SourceLocation Loc, TypeTrait Kind,
 2659                                SourceLocation RParenLoc,
 2690   SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
 2691   SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; }
 2726   SourceLocation Loc;
 2729   SourceLocation RParen;
 2737   ArrayTypeTraitExpr(SourceLocation loc, ArrayTypeTrait att,
 2739                      Expr *dimension, SourceLocation rparen, QualType ty)
 2751   SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
 2752   SourceLocation getEndLoc() const LLVM_READONLY { return RParen; }
 2793   SourceLocation Loc;
 2796   SourceLocation RParen;
 2804   ExpressionTraitExpr(SourceLocation loc, ExpressionTrait et,
 2806                      SourceLocation rparen, QualType resultType)
 2819   SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
 2820   SourceLocation getEndLoc() const LLVM_READONLY { return RParen; }
 2857                SourceLocation TemplateKWLoc,
 2956   SourceLocation getNameLoc() const { return NameInfo.getLoc(); }
 2969   SourceLocation getTemplateKeywordLoc() const {
 2977   SourceLocation getLAngleLoc() const {
 2985   SourceLocation getRAngleLoc() const {
 3067                        SourceLocation TemplateKWLoc,
 3093          NestedNameSpecifierLoc QualifierLoc, SourceLocation TemplateKWLoc,
 3116   SourceLocation getBeginLoc() const LLVM_READONLY {
 3122   SourceLocation getEndLoc() const LLVM_READONLY {
 3172                             SourceLocation TemplateKWLoc,
 3187          SourceLocation TemplateKWLoc, const DeclarationNameInfo &NameInfo,
 3203   SourceLocation getLocation() const { return NameInfo.getLoc(); }
 3217   SourceLocation getTemplateKeywordLoc() const {
 3225   SourceLocation getLAngleLoc() const {
 3233   SourceLocation getRAngleLoc() const {
 3273   SourceLocation getBeginLoc() const LLVM_READONLY {
 3277   SourceLocation getEndLoc() const LLVM_READONLY {
 3348   SourceLocation getBeginLoc() const LLVM_READONLY {
 3352   SourceLocation getEndLoc() const LLVM_READONLY {
 3400   SourceLocation LParenLoc;
 3403   SourceLocation RParenLoc;
 3405   CXXUnresolvedConstructExpr(TypeSourceInfo *TSI, SourceLocation LParenLoc,
 3406                              ArrayRef<Expr *> Args, SourceLocation RParenLoc);
 3416                                             SourceLocation LParenLoc,
 3418                                             SourceLocation RParenLoc);
 3433   SourceLocation getLParenLoc() const { return LParenLoc; }
 3434   void setLParenLoc(SourceLocation L) { LParenLoc = L; }
 3438   SourceLocation getRParenLoc() const { return RParenLoc; }
 3439   void setRParenLoc(SourceLocation L) { RParenLoc = L; }
 3480   SourceLocation getBeginLoc() const LLVM_READONLY;
 3481   SourceLocation getEndLoc() const LLVM_READONLY {
 3576                               SourceLocation OperatorLoc,
 3578                               SourceLocation TemplateKWLoc,
 3589          SourceLocation OperatorLoc, NestedNameSpecifierLoc QualifierLoc,
 3590          SourceLocation TemplateKWLoc, NamedDecl *FirstQualifierFoundInScope,
 3621   SourceLocation getOperatorLoc() const {
 3661   SourceLocation getMemberLoc() const { return MemberNameInfo.getLoc(); }
 3665   SourceLocation getTemplateKeywordLoc() const {
 3673   SourceLocation getLAngleLoc() const {
 3681   SourceLocation getRAngleLoc() const {
 3724   SourceLocation getBeginLoc() const LLVM_READONLY {
 3732   SourceLocation getEndLoc() const LLVM_READONLY {
 3790   SourceLocation OperatorLoc;
 3808                        SourceLocation OperatorLoc,
 3810                        SourceLocation TemplateKWLoc,
 3829          QualType BaseType, bool IsArrow, SourceLocation OperatorLoc,
 3830          NestedNameSpecifierLoc QualifierLoc, SourceLocation TemplateKWLoc,
 3870   SourceLocation getOperatorLoc() const { return OperatorLoc; }
 3887   SourceLocation getMemberLoc() const { return getNameLoc(); }
 3891   SourceLocation getExprLoc() const LLVM_READONLY { return getMemberLoc(); }
 3893   SourceLocation getBeginLoc() const LLVM_READONLY {
 3901   SourceLocation getEndLoc() const LLVM_READONLY {
 3966                   SourceLocation Keyword, SourceLocation RParen)
 3966                   SourceLocation Keyword, SourceLocation RParen)
 3980   SourceLocation getBeginLoc() const { return Range.getBegin(); }
 3981   SourceLocation getEndLoc() const { return Range.getEnd(); }
 4019   SourceLocation EllipsisLoc;
 4031   PackExpansionExpr(QualType T, Expr *Pattern, SourceLocation EllipsisLoc,
 4051   SourceLocation getEllipsisLoc() const { return EllipsisLoc; }
 4062   SourceLocation getBeginLoc() const LLVM_READONLY {
 4066   SourceLocation getEndLoc() const LLVM_READONLY { return EllipsisLoc; }
 4099   SourceLocation OperatorLoc;
 4102   SourceLocation PackLoc;
 4105   SourceLocation RParenLoc;
 4124   SizeOfPackExpr(QualType SizeType, SourceLocation OperatorLoc, NamedDecl *Pack,
 4125                  SourceLocation PackLoc, SourceLocation RParenLoc,
 4125                  SourceLocation PackLoc, SourceLocation RParenLoc,
 4144   static SizeOfPackExpr *Create(ASTContext &Context, SourceLocation OperatorLoc,
 4145                                 NamedDecl *Pack, SourceLocation PackLoc,
 4146                                 SourceLocation RParenLoc,
 4153   SourceLocation getOperatorLoc() const { return OperatorLoc; }
 4156   SourceLocation getPackLoc() const { return PackLoc; }
 4159   SourceLocation getRParenLoc() const { return RParenLoc; }
 4190   SourceLocation getBeginLoc() const LLVM_READONLY { return OperatorLoc; }
 4191   SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; }
 4224                                SourceLocation Loc,
 4235   SourceLocation getNameLoc() const {
 4238   SourceLocation getBeginLoc() const { return getNameLoc(); }
 4239   SourceLocation getEndLoc() const { return getNameLoc(); }
 4284   SourceLocation NameLoc;
 4293                                    SourceLocation NameLoc,
 4300   SourceLocation getParameterPackLocation() const { return NameLoc; }
 4306   SourceLocation getBeginLoc() const LLVM_READONLY { return NameLoc; }
 4307   SourceLocation getEndLoc() const LLVM_READONLY { return NameLoc; }
 4348   SourceLocation NameLoc;
 4354                        SourceLocation NameLoc, unsigned NumParams,
 4360                                       SourceLocation NameLoc,
 4369   SourceLocation getParameterPackLocation() const { return NameLoc; }
 4383   SourceLocation getBeginLoc() const LLVM_READONLY { return NameLoc; }
 4384   SourceLocation getEndLoc() const LLVM_READONLY { return NameLoc; }
 4496   SourceLocation getBeginLoc() const LLVM_READONLY {
 4500   SourceLocation getEndLoc() const LLVM_READONLY {
 4539   SourceLocation LParenLoc;
 4540   SourceLocation EllipsisLoc;
 4541   SourceLocation RParenLoc;
 4549   CXXFoldExpr(QualType T, SourceLocation LParenLoc, Expr *LHS,
 4550               BinaryOperatorKind Opcode, SourceLocation EllipsisLoc, Expr *RHS,
 4551               SourceLocation RParenLoc, Optional<unsigned> NumExpansions)
 4580   SourceLocation getEllipsisLoc() const { return EllipsisLoc; }
 4589   SourceLocation getBeginLoc() const LLVM_READONLY { return LParenLoc; }
 4591   SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; }
 4621   SourceLocation KeywordLoc;
 4629   CoroutineSuspendExpr(StmtClass SC, SourceLocation KeywordLoc, Expr *Common,
 4643   CoroutineSuspendExpr(StmtClass SC, SourceLocation KeywordLoc, QualType Ty,
 4663   SourceLocation getKeywordLoc() const { return KeywordLoc; }
 4684   SourceLocation getBeginLoc() const LLVM_READONLY { return KeywordLoc; }
 4686   SourceLocation getEndLoc() const LLVM_READONLY {
 4709   CoawaitExpr(SourceLocation CoawaitLoc, Expr *Operand, Expr *Ready,
 4717   CoawaitExpr(SourceLocation CoawaitLoc, QualType Ty, Expr *Operand,
 4744   SourceLocation KeywordLoc;
 4748   DependentCoawaitExpr(SourceLocation KeywordLoc, QualType Ty, Expr *Op,
 4772   SourceLocation getKeywordLoc() const { return KeywordLoc; }
 4774   SourceLocation getBeginLoc() const LLVM_READONLY { return KeywordLoc; }
 4776   SourceLocation getEndLoc() const LLVM_READONLY {
 4796   CoyieldExpr(SourceLocation CoyieldLoc, Expr *Operand, Expr *Ready,
 4800   CoyieldExpr(SourceLocation CoyieldLoc, QualType Ty, Expr *Operand)
 4825   SourceLocation KWLoc;
 4826   SourceLocation RParenLoc;
 4830                      TypeSourceInfo *DstType, SourceLocation KWLoc,
 4831                      SourceLocation RParenLoc)
 4836   SourceLocation getBeginLoc() const LLVM_READONLY { return KWLoc; }
 4837   SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; }
 4860   SourceLocation TemplateKWLoc;
 4863   SourceLocation ConceptNameLoc;
 4886                             SourceLocation TemplateKWLoc,
 4887                             SourceLocation ConceptNameLoc, NamedDecl *FoundDecl,
 4899          SourceLocation TemplateKWLoc, SourceLocation ConceptNameLoc,
 4899          SourceLocation TemplateKWLoc, SourceLocation ConceptNameLoc,
 4941   SourceLocation getConceptNameLoc() const { return ConceptNameLoc; }
 4943   SourceLocation getTemplateKWLoc() const { return TemplateKWLoc; }
 4949   SourceLocation getBeginLoc() const LLVM_READONLY { return ConceptNameLoc; }
 4950   SourceLocation getEndLoc() const LLVM_READONLY {
tools/clang/include/clang/AST/ExprObjC.h
   52   SourceLocation AtLoc;
   55   ObjCStringLiteral(StringLiteral *SL, QualType T, SourceLocation L)
   66   SourceLocation getAtLoc() const { return AtLoc; }
   67   void setAtLoc(SourceLocation L) { AtLoc = L; }
   69   SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; }
   70   SourceLocation getEndLoc() const LLVM_READONLY { return String->getEndLoc(); }
   87   SourceLocation Loc;
   90   ObjCBoolLiteralExpr(bool val, QualType Ty, SourceLocation l)
  100   SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
  101   SourceLocation getEndLoc() const LLVM_READONLY { return Loc; }
  103   SourceLocation getLocation() const { return Loc; }
  104   void setLocation(SourceLocation L) { Loc = L; }
  155   SourceLocation getAtLoc() const { return Range.getBegin(); }
  157   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
  158   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
  214   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
  215   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
  269   SourceLocation EllipsisLoc;
  295   SourceLocation EllipsisLoc;
  378   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
  379   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
  409   SourceLocation AtLoc, RParenLoc;
  413                  SourceLocation at, SourceLocation rp)
  413                  SourceLocation at, SourceLocation rp)
  423   SourceLocation getAtLoc() const { return AtLoc; }
  424   void setAtLoc(SourceLocation L) { AtLoc = L; }
  425   SourceLocation getRParenLoc() const { return RParenLoc; }
  426   void setRParenLoc(SourceLocation L) { RParenLoc = L; }
  436   SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; }
  437   SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; }
  456   SourceLocation AtLoc, RParenLoc;
  460                    SourceLocation at, SourceLocation rp)
  460                    SourceLocation at, SourceLocation rp)
  470   SourceLocation getAtLoc() const { return AtLoc; }
  471   SourceLocation getRParenLoc() const { return RParenLoc; }
  472   void setAtLoc(SourceLocation L) { AtLoc = L; }
  473   void setRParenLoc(SourceLocation L) { RParenLoc = L; }
  475   SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; }
  476   SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; }
  505   SourceLocation AtLoc, ProtoLoc, RParenLoc;
  512                  SourceLocation at, SourceLocation protoLoc, SourceLocation rp)
  512                  SourceLocation at, SourceLocation protoLoc, SourceLocation rp)
  512                  SourceLocation at, SourceLocation protoLoc, SourceLocation rp)
  522   SourceLocation getProtocolIdLoc() const { return ProtoLoc; }
  523   SourceLocation getAtLoc() const { return AtLoc; }
  524   SourceLocation getRParenLoc() const { return RParenLoc; }
  525   void setAtLoc(SourceLocation L) { AtLoc = L; }
  526   void setRParenLoc(SourceLocation L) { RParenLoc = L; }
  528   SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; }
  529   SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; }
  549   SourceLocation Loc;
  552   SourceLocation OpLoc;
  562                   SourceLocation l, SourceLocation oploc,
  562                   SourceLocation l, SourceLocation oploc,
  589   SourceLocation getLocation() const { return Loc; }
  590   void setLocation(SourceLocation L) { Loc = L; }
  592   SourceLocation getBeginLoc() const LLVM_READONLY {
  595   SourceLocation getEndLoc() const LLVM_READONLY { return Loc; }
  597   SourceLocation getOpLoc() const { return OpLoc; }
  598   void setOpLoc(SourceLocation L) { OpLoc = L; }
  639   SourceLocation IdLoc;
  644   SourceLocation ReceiverLoc;
  650                       SourceLocation l, Expr *base)
  661                       SourceLocation l, SourceLocation sl, QualType st)
  661                       SourceLocation l, SourceLocation sl, QualType st)
  672                       SourceLocation IdLoc, Expr *Base)
  683                       SourceLocation IdLoc,
  684                       SourceLocation SuperLoc, QualType SuperTy)
  693                       SourceLocation IdLoc,
  694                       SourceLocation ReceiverLoc, ObjCInterfaceDecl *Receiver)
  763   SourceLocation getLocation() const { return IdLoc; }
  765   SourceLocation getReceiverLocation() const { return ReceiverLoc; }
  782   SourceLocation getBeginLoc() const LLVM_READONLY {
  787   SourceLocation getEndLoc() const LLVM_READONLY { return IdLoc; }
  830   void setLocation(SourceLocation L) { IdLoc = L; }
  831   void setReceiverLocation(SourceLocation Loc) { ReceiverLoc = Loc; }
  847   SourceLocation RBracket;
  865                        ObjCMethodDecl *setMethod, SourceLocation RB)
  881   SourceLocation getRBracket() const { return RBracket; }
  882   void setRBracket(SourceLocation RB) { RBracket = RB; }
  884   SourceLocation getBeginLoc() const LLVM_READONLY {
  888   SourceLocation getEndLoc() const LLVM_READONLY { return RBracket; }
  952       private llvm::TrailingObjects<ObjCMessageExpr, void *, SourceLocation> {
  991   SourceLocation SuperLoc;
  995   SourceLocation LBracLoc, RBracLoc;
 1004                   SourceLocation LBracLoc,
 1005                   SourceLocation SuperLoc,
 1009                   ArrayRef<SourceLocation> SelLocs,
 1013                   SourceLocation RBracLoc,
 1016                   SourceLocation LBracLoc,
 1019                   ArrayRef<SourceLocation> SelLocs,
 1023                   SourceLocation RBracLoc,
 1026                   SourceLocation LBracLoc,
 1029                   ArrayRef<SourceLocation> SelLocs,
 1033                   SourceLocation RBracLoc,
 1044                           ArrayRef<SourceLocation> SelLocs,
 1065   SourceLocation *getStoredSelLocs() {
 1066     return getTrailingObjects<SourceLocation>();
 1068   const SourceLocation *getStoredSelLocs() const {
 1069     return getTrailingObjects<SourceLocation>();
 1082                                 SourceLocation RBraceLoc,
 1083                                 ArrayRef<SourceLocation> SelLocs,
 1137                                  SourceLocation LBracLoc,
 1138                                  SourceLocation SuperLoc,
 1142                                  ArrayRef<SourceLocation> SelLocs,
 1145                                  SourceLocation RBracLoc,
 1173                                  SourceLocation LBracLoc,
 1176                                  ArrayRef<SourceLocation> SelLocs,
 1179                                  SourceLocation RBracLoc,
 1207                                  SourceLocation LBracLoc,
 1210                                  ArrayRef<SourceLocation> SeLocs,
 1213                                  SourceLocation RBracLoc,
 1301   SourceLocation getSuperLoc() const {
 1343   void setSuper(SourceLocation Loc, QualType T, bool IsInstanceSuper) {
 1416   SourceLocation getLeftLoc() const { return LBracLoc; }
 1417   SourceLocation getRightLoc() const { return RBracLoc; }
 1419   SourceLocation getSelectorStartLoc() const {
 1425   SourceLocation getSelectorLoc(unsigned Index) const {
 1436   void getSelectorLocs(SmallVectorImpl<SourceLocation> &SelLocs) const;
 1452   SourceLocation getBeginLoc() const LLVM_READONLY { return LBracLoc; }
 1453   SourceLocation getEndLoc() const LLVM_READONLY { return RBracLoc; }
 1497   SourceLocation IsaMemberLoc;
 1500   SourceLocation OpLoc;
 1506   ObjCIsaExpr(Expr *base, bool isarrow, SourceLocation l, SourceLocation oploc,
 1506   ObjCIsaExpr(Expr *base, bool isarrow, SourceLocation l, SourceLocation oploc,
 1525   SourceLocation getIsaMemberLoc() const { return IsaMemberLoc; }
 1526   void setIsaMemberLoc(SourceLocation L) { IsaMemberLoc = L; }
 1528   SourceLocation getOpLoc() const { return OpLoc; }
 1529   void setOpLoc(SourceLocation L) { OpLoc = L; }
 1531   SourceLocation getBeginLoc() const LLVM_READONLY {
 1535   SourceLocation getBaseLocEnd() const LLVM_READONLY {
 1539   SourceLocation getEndLoc() const LLVM_READONLY { return IsaMemberLoc; }
 1541   SourceLocation getExprLoc() const LLVM_READONLY { return IsaMemberLoc; }
 1616   SourceLocation getBeginLoc() const LLVM_READONLY {
 1619   SourceLocation getEndLoc() const LLVM_READONLY {
 1623   SourceLocation getExprLoc() const LLVM_READONLY {
 1646   SourceLocation LParenLoc;
 1647   SourceLocation BridgeKeywordLoc;
 1651   ObjCBridgedCastExpr(SourceLocation LParenLoc, ObjCBridgeCastKind Kind,
 1652                       CastKind CK, SourceLocation BridgeKeywordLoc,
 1662   SourceLocation getLParenLoc() const { return LParenLoc; }
 1673   SourceLocation getBridgeKeywordLoc() const { return BridgeKeywordLoc; }
 1675   SourceLocation getBeginLoc() const LLVM_READONLY { return LParenLoc; }
 1677   SourceLocation getEndLoc() const LLVM_READONLY {
 1703   SourceLocation AtLoc, RParen;
 1706   ObjCAvailabilityCheckExpr(VersionTuple VersionToCheck, SourceLocation AtLoc,
 1707                             SourceLocation RParen, QualType Ty)
 1715   SourceLocation getBeginLoc() const { return AtLoc; }
 1716   SourceLocation getEndLoc() const { return RParen; }
tools/clang/include/clang/AST/ExprOpenMP.h
   47   SourceLocation ColonLoc;
   48   SourceLocation RBracketLoc;
   53                       SourceLocation ColonLoc, SourceLocation RBracketLoc)
   53                       SourceLocation ColonLoc, SourceLocation RBracketLoc)
  103   SourceLocation getBeginLoc() const LLVM_READONLY {
  106   SourceLocation getEndLoc() const LLVM_READONLY { return RBracketLoc; }
  108   SourceLocation getColonLoc() const { return ColonLoc; }
  109   void setColonLoc(SourceLocation L) { ColonLoc = L; }
  111   SourceLocation getRBracketLoc() const { return RBracketLoc; }
  112   void setRBracketLoc(SourceLocation L) { RBracketLoc = L; }
  114   SourceLocation getExprLoc() const LLVM_READONLY {
tools/clang/include/clang/AST/JSONNodeDumper.h
  147   void writeBareSourceLocation(SourceLocation Loc, bool IsSpelling);
  153   void writeSourceLocation(SourceLocation Loc);
tools/clang/include/clang/AST/LambdaCapture.h
   51   SourceLocation Loc;
   52   SourceLocation EllipsisLoc;
   73   LambdaCapture(SourceLocation Loc, bool Implicit, LambdaCaptureKind Kind,
   75                 SourceLocation EllipsisLoc = SourceLocation());
  125   SourceLocation getLocation() const { return Loc; }
  133   SourceLocation getEllipsisLoc() const {
tools/clang/include/clang/AST/NestedNameSpecifier.h
  292   SourceLocation getBeginLoc() const {
  298   SourceLocation getEndLoc() const {
  304   SourceLocation getLocalBeginLoc() const {
  310   SourceLocation getLocalEndLoc() const {
  396   void Extend(ASTContext &Context, SourceLocation TemplateKWLoc, TypeLoc TL,
  397               SourceLocation ColonColonLoc);
  411               SourceLocation IdentifierLoc, SourceLocation ColonColonLoc);
  411               SourceLocation IdentifierLoc, SourceLocation ColonColonLoc);
  425               SourceLocation NamespaceLoc, SourceLocation ColonColonLoc);
  425               SourceLocation NamespaceLoc, SourceLocation ColonColonLoc);
  440               SourceLocation AliasLoc, SourceLocation ColonColonLoc);
  440               SourceLocation AliasLoc, SourceLocation ColonColonLoc);
  444   void MakeGlobal(ASTContext &Context, SourceLocation ColonColonLoc);
  460                  SourceLocation SuperLoc, SourceLocation ColonColonLoc);
  460                  SourceLocation SuperLoc, SourceLocation ColonColonLoc);
tools/clang/include/clang/AST/NonTrivialTypeVisitor.h
   51   template <class... Ts> RetTy visit(QualType FT, Ts &&... Args) {
   54         std::forward<Ts>(Args)...);
   59                       QualType FT, Ts &&... Args) {
   79   template <class... Ts> RetTy visit(QualType FT, Ts &&... Args) {
   83     return asDerived().visitWithKind(PCK, FT, std::forward<Ts>(Args)...);
   88                       Ts &&... Args) {
tools/clang/include/clang/AST/OpenMPClause.h
   52   SourceLocation StartLoc;
   55   SourceLocation EndLoc;
   61   OMPClause(OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc)
   61   OMPClause(OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc)
   66   SourceLocation getBeginLoc() const { return StartLoc; }
   69   SourceLocation getEndLoc() const { return EndLoc; }
   72   void setLocStart(SourceLocation Loc) { StartLoc = Loc; }
   75   void setLocEnd(SourceLocation Loc) { EndLoc = Loc; }
  171   SourceLocation StartLoc;
  173   SourceLocation LParenLoc;
  175   SourceLocation EndLoc;
  177   OMPVarListLocTy(SourceLocation StartLoc, SourceLocation LParenLoc,
  177   OMPVarListLocTy(SourceLocation StartLoc, SourceLocation LParenLoc,
  178                   SourceLocation EndLoc)
  189   SourceLocation LParenLoc;
  202   OMPVarListClause(OpenMPClauseKind K, SourceLocation StartLoc,
  203                    SourceLocation LParenLoc, SourceLocation EndLoc, unsigned N)
  203                    SourceLocation LParenLoc, SourceLocation EndLoc, unsigned N)
  242   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
  245   SourceLocation getLParenLoc() const { return LParenLoc; }
  267   SourceLocation LParenLoc;
  282   OMPAllocatorClause(Expr *A, SourceLocation StartLoc, SourceLocation LParenLoc,
  282   OMPAllocatorClause(Expr *A, SourceLocation StartLoc, SourceLocation LParenLoc,
  283                      SourceLocation EndLoc)
  292   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
  295   SourceLocation getLParenLoc() const { return LParenLoc; }
  336   SourceLocation ColonLoc;
  346   OMPAllocateClause(SourceLocation StartLoc, SourceLocation LParenLoc,
  346   OMPAllocateClause(SourceLocation StartLoc, SourceLocation LParenLoc,
  347                     Expr *Allocator, SourceLocation ColonLoc,
  348                     SourceLocation EndLoc, unsigned N)
  362   void setColonLoc(SourceLocation CL) { ColonLoc = CL; }
  376   static OMPAllocateClause *Create(const ASTContext &C, SourceLocation StartLoc,
  377                                    SourceLocation LParenLoc, Expr *Allocator,
  378                                    SourceLocation ColonLoc,
  379                                    SourceLocation EndLoc, ArrayRef<Expr *> VL);
  385   SourceLocation getColonLoc() const { return ColonLoc; }
  426   SourceLocation LParenLoc;
  432   SourceLocation ColonLoc;
  438   SourceLocation NameModifierLoc;
  447   void setNameModifierLoc(SourceLocation Loc) { NameModifierLoc = Loc; }
  450   void setColonLoc(SourceLocation Loc) { ColonLoc = Loc; }
  466               OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc,
  467               SourceLocation LParenLoc, SourceLocation NameModifierLoc,
  467               SourceLocation LParenLoc, SourceLocation NameModifierLoc,
  468               SourceLocation ColonLoc, SourceLocation EndLoc)
  468               SourceLocation ColonLoc, SourceLocation EndLoc)
  481   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
  484   SourceLocation getLParenLoc() const { return LParenLoc; }
  487   SourceLocation getColonLoc() const { return ColonLoc; }
  496   SourceLocation getNameModifierLoc() const { return NameModifierLoc; }
  526   SourceLocation LParenLoc;
  545                  OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc,
  546                  SourceLocation LParenLoc, SourceLocation EndLoc)
  546                  SourceLocation LParenLoc, SourceLocation EndLoc)
  558   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
  561   SourceLocation getLParenLoc() const { return LParenLoc; }
  595   SourceLocation LParenLoc;
  615                       SourceLocation StartLoc, SourceLocation LParenLoc,
  615                       SourceLocation StartLoc, SourceLocation LParenLoc,
  616                       SourceLocation EndLoc)
  629   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
  632   SourceLocation getLParenLoc() const { return LParenLoc; }
  671   SourceLocation LParenLoc;
  685   OMPSafelenClause(Expr *Len, SourceLocation StartLoc, SourceLocation LParenLoc,
  685   OMPSafelenClause(Expr *Len, SourceLocation StartLoc, SourceLocation LParenLoc,
  686                    SourceLocation EndLoc)
  695   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
  698   SourceLocation getLParenLoc() const { return LParenLoc; }
  736   SourceLocation LParenLoc;
  750   OMPSimdlenClause(Expr *Len, SourceLocation StartLoc, SourceLocation LParenLoc,
  750   OMPSimdlenClause(Expr *Len, SourceLocation StartLoc, SourceLocation LParenLoc,
  751                    SourceLocation EndLoc)
  760   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
  763   SourceLocation getLParenLoc() const { return LParenLoc; }
  801   SourceLocation LParenLoc;
  816   OMPCollapseClause(Expr *Num, SourceLocation StartLoc,
  817                     SourceLocation LParenLoc, SourceLocation EndLoc)
  817                     SourceLocation LParenLoc, SourceLocation EndLoc)
  826   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
  829   SourceLocation getLParenLoc() const { return LParenLoc; }
  863   SourceLocation LParenLoc;
  869   SourceLocation KindKwLoc;
  879   void setDefaultKindKwLoc(SourceLocation KLoc) { KindKwLoc = KLoc; }
  889   OMPDefaultClause(OpenMPDefaultClauseKind A, SourceLocation ALoc,
  890                    SourceLocation StartLoc, SourceLocation LParenLoc,
  890                    SourceLocation StartLoc, SourceLocation LParenLoc,
  891                    SourceLocation EndLoc)
  900   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
  903   SourceLocation getLParenLoc() const { return LParenLoc; }
  909   SourceLocation getDefaultKindKwLoc() const { return KindKwLoc; }
  943   SourceLocation LParenLoc;
  949   SourceLocation KindKwLoc;
  959   void setProcBindKindKwLoc(SourceLocation KLoc) { KindKwLoc = KLoc; }
  970   OMPProcBindClause(OpenMPProcBindClauseKind A, SourceLocation ALoc,
  971                     SourceLocation StartLoc, SourceLocation LParenLoc,
  971                     SourceLocation StartLoc, SourceLocation LParenLoc,
  972                     SourceLocation EndLoc)
  981   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
  984   SourceLocation getLParenLoc() const { return LParenLoc; }
  990   SourceLocation getProcBindKindKwLoc() const { return KindKwLoc; }
 1027   OMPUnifiedAddressClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1027   OMPUnifiedAddressClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1069   OMPUnifiedSharedMemoryClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1069   OMPUnifiedSharedMemoryClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1111   OMPReverseOffloadClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1111   OMPReverseOffloadClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1153   OMPDynamicAllocatorsClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1153   OMPDynamicAllocatorsClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1193   SourceLocation LParenLoc;
 1200   SourceLocation KindKwLoc;
 1212   void setAtomicDefaultMemOrderKindKwLoc(SourceLocation KLoc) {
 1226                                  SourceLocation ALoc, SourceLocation StartLoc,
 1226                                  SourceLocation ALoc, SourceLocation StartLoc,
 1227                                  SourceLocation LParenLoc,
 1228                                  SourceLocation EndLoc)
 1238   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
 1241   SourceLocation getLParenLoc() const { return LParenLoc; }
 1249   SourceLocation getAtomicDefaultMemOrderKindKwLoc() const { return KindKwLoc; }
 1282   SourceLocation LParenLoc;
 1292   SourceLocation ModifiersLoc[NUM_MODIFIERS];
 1295   SourceLocation KindLoc;
 1298   SourceLocation CommaLoc;
 1323   void setFirstScheduleModifierLoc(SourceLocation Loc) {
 1328   void setSecondScheduleModifierLoc(SourceLocation Loc) {
 1347   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
 1352   void setScheduleKindLoc(SourceLocation KLoc) { KindLoc = KLoc; }
 1357   void setCommaLoc(SourceLocation Loc) { CommaLoc = Loc; }
 1380   OMPScheduleClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 1380   OMPScheduleClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 1381                     SourceLocation KLoc, SourceLocation CommaLoc,
 1381                     SourceLocation KLoc, SourceLocation CommaLoc,
 1382                     SourceLocation EndLoc, OpenMPScheduleClauseKind Kind,
 1384                     OpenMPScheduleClauseModifier M1, SourceLocation M1Loc,
 1385                     OpenMPScheduleClauseModifier M2, SourceLocation M2Loc)
 1418   SourceLocation getLParenLoc() { return LParenLoc; }
 1421   SourceLocation getScheduleKindLoc() { return KindLoc; }
 1424   SourceLocation getFirstScheduleModifierLoc() const {
 1429   SourceLocation getSecondScheduleModifierLoc() const {
 1434   SourceLocation getCommaLoc() { return CommaLoc; }
 1478   SourceLocation LParenLoc;
 1493   OMPOrderedClause(Expr *Num, unsigned NumLoops, SourceLocation StartLoc,
 1494                    SourceLocation LParenLoc, SourceLocation EndLoc)
 1494                    SourceLocation LParenLoc, SourceLocation EndLoc)
 1515                                   unsigned NumLoops, SourceLocation StartLoc,
 1516                                   SourceLocation LParenLoc,
 1517                                   SourceLocation EndLoc);
 1523   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
 1526   SourceLocation getLParenLoc() const { return LParenLoc; }
 1572   OMPNowaitClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1572   OMPNowaitClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1611   OMPUntiedClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1611   OMPUntiedClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1651   OMPMergeableClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1651   OMPMergeableClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1690   OMPReadClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1690   OMPReadClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1728   OMPWriteClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1728   OMPWriteClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1768   OMPUpdateClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1768   OMPUpdateClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1808   OMPCaptureClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1808   OMPCaptureClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1848   OMPSeqCstClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1848   OMPSeqCstClause(SourceLocation StartLoc, SourceLocation EndLoc)
 1895   OMPPrivateClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 1895   OMPPrivateClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 1896                    SourceLocation EndLoc, unsigned N)
 1931   static OMPPrivateClause *Create(const ASTContext &C, SourceLocation StartLoc,
 1932                                   SourceLocation LParenLoc,
 1933                                   SourceLocation EndLoc, ArrayRef<Expr *> VL,
 2002   OMPFirstprivateClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 2002   OMPFirstprivateClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 2003                         SourceLocation EndLoc, unsigned N)
 2060   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
 2060   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
 2061          SourceLocation EndLoc, ArrayRef<Expr *> VL, ArrayRef<Expr *> PrivateVL,
 2159   OMPLastprivateClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 2159   OMPLastprivateClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 2160                        SourceLocation EndLoc, unsigned N)
 2250   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
 2250   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
 2251          SourceLocation EndLoc, ArrayRef<Expr *> VL, ArrayRef<Expr *> SrcExprs,
 2351   OMPSharedClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 2351   OMPSharedClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 2352                   SourceLocation EndLoc, unsigned N)
 2372   static OMPSharedClause *Create(const ASTContext &C, SourceLocation StartLoc,
 2373                                  SourceLocation LParenLoc,
 2374                                  SourceLocation EndLoc, ArrayRef<Expr *> VL);
 2421   SourceLocation ColonLoc;
 2438   OMPReductionClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 2438   OMPReductionClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 2439                      SourceLocation ColonLoc, SourceLocation EndLoc, unsigned N,
 2439                      SourceLocation ColonLoc, SourceLocation EndLoc, unsigned N,
 2457   void setColonLoc(SourceLocation CL) { ColonLoc = CL; }
 2554   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
 2554   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
 2555          SourceLocation ColonLoc, SourceLocation EndLoc, ArrayRef<Expr *> VL,
 2555          SourceLocation ColonLoc, SourceLocation EndLoc, ArrayRef<Expr *> VL,
 2568   SourceLocation getColonLoc() const { return ColonLoc; }
 2657   SourceLocation ColonLoc;
 2674   OMPTaskReductionClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 2674   OMPTaskReductionClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 2675                          SourceLocation ColonLoc, SourceLocation EndLoc,
 2675                          SourceLocation ColonLoc, SourceLocation EndLoc,
 2693   void setColonLoc(SourceLocation CL) { ColonLoc = CL; }
 2788   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
 2788   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
 2789          SourceLocation ColonLoc, SourceLocation EndLoc, ArrayRef<Expr *> VL,
 2789          SourceLocation ColonLoc, SourceLocation EndLoc, ArrayRef<Expr *> VL,
 2802   SourceLocation getColonLoc() const { return ColonLoc; }
 2888   SourceLocation ColonLoc;
 2905   OMPInReductionClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 2905   OMPInReductionClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 2906                        SourceLocation ColonLoc, SourceLocation EndLoc,
 2906                        SourceLocation ColonLoc, SourceLocation EndLoc,
 2924   void setColonLoc(SourceLocation CL) { ColonLoc = CL; }
 3032   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
 3032   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
 3033          SourceLocation ColonLoc, SourceLocation EndLoc, ArrayRef<Expr *> VL,
 3033          SourceLocation ColonLoc, SourceLocation EndLoc, ArrayRef<Expr *> VL,
 3047   SourceLocation getColonLoc() const { return ColonLoc; }
 3147   SourceLocation ModifierLoc;
 3150   SourceLocation ColonLoc;
 3165   OMPLinearClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 3165   OMPLinearClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 3166                   OpenMPLinearClauseKind Modifier, SourceLocation ModifierLoc,
 3167                   SourceLocation ColonLoc, SourceLocation EndLoc,
 3167                   SourceLocation ColonLoc, SourceLocation EndLoc,
 3262   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
 3262   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
 3263          OpenMPLinearClauseKind Modifier, SourceLocation ModifierLoc,
 3264          SourceLocation ColonLoc, SourceLocation EndLoc, ArrayRef<Expr *> VL,
 3264          SourceLocation ColonLoc, SourceLocation EndLoc, ArrayRef<Expr *> VL,
 3281   void setModifierLoc(SourceLocation Loc) { ModifierLoc = Loc; }
 3284   SourceLocation getModifierLoc() const { return ModifierLoc; }
 3287   void setColonLoc(SourceLocation Loc) { ColonLoc = Loc; }
 3290   SourceLocation getColonLoc() const { return ColonLoc; }
 3420   SourceLocation ColonLoc;
 3432   OMPAlignedClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 3432   OMPAlignedClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 3433                    SourceLocation ColonLoc, SourceLocation EndLoc,
 3433                    SourceLocation ColonLoc, SourceLocation EndLoc,
 3457   static OMPAlignedClause *Create(const ASTContext &C, SourceLocation StartLoc,
 3458                                   SourceLocation LParenLoc,
 3459                                   SourceLocation ColonLoc,
 3460                                   SourceLocation EndLoc, ArrayRef<Expr *> VL,
 3470   void setColonLoc(SourceLocation Loc) { ColonLoc = Loc; }
 3473   SourceLocation getColonLoc() const { return ColonLoc; }
 3536   OMPCopyinClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 3536   OMPCopyinClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 3537                   SourceLocation EndLoc, unsigned N)
 3612   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
 3612   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
 3613          SourceLocation EndLoc, ArrayRef<Expr *> VL, ArrayRef<Expr *> SrcExprs,
 3700   OMPCopyprivateClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 3700   OMPCopyprivateClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 3701                        SourceLocation EndLoc, unsigned N)
 3775   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
 3775   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
 3776          SourceLocation EndLoc, ArrayRef<Expr *> VL, ArrayRef<Expr *> SrcExprs,
 3866   OMPFlushClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 3866   OMPFlushClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 3867                  SourceLocation EndLoc, unsigned N)
 3887   static OMPFlushClause *Create(const ASTContext &C, SourceLocation StartLoc,
 3888                                 SourceLocation LParenLoc, SourceLocation EndLoc,
 3888                                 SourceLocation LParenLoc, SourceLocation EndLoc,
 3938   SourceLocation DepLoc;
 3941   SourceLocation ColonLoc;
 3954   OMPDependClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 3954   OMPDependClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 3955                   SourceLocation EndLoc, unsigned N, unsigned NumLoops)
 3974   void setDependencyLoc(SourceLocation Loc) { DepLoc = Loc; }
 3977   void setColonLoc(SourceLocation Loc) { ColonLoc = Loc; }
 3992   static OMPDependClause *Create(const ASTContext &C, SourceLocation StartLoc,
 3993                                  SourceLocation LParenLoc,
 3994                                  SourceLocation EndLoc,
 3996                                  SourceLocation DepLoc, SourceLocation ColonLoc,
 3996                                  SourceLocation DepLoc, SourceLocation ColonLoc,
 4012   SourceLocation getDependencyLoc() const { return DepLoc; }
 4015   SourceLocation getColonLoc() const { return ColonLoc; }
 4062   SourceLocation LParenLoc;
 4082                   SourceLocation StartLoc, SourceLocation LParenLoc,
 4082                   SourceLocation StartLoc, SourceLocation LParenLoc,
 4083                   SourceLocation EndLoc)
 4095   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
 4098   SourceLocation getLParenLoc() const { return LParenLoc; }
 4136   OMPThreadsClause(SourceLocation StartLoc, SourceLocation EndLoc)
 4136   OMPThreadsClause(SourceLocation StartLoc, SourceLocation EndLoc)
 4175   OMPSIMDClause(SourceLocation StartLoc, SourceLocation EndLoc)
 4175   OMPSIMDClause(SourceLocation StartLoc, SourceLocation EndLoc)
 4837   SourceLocation MapTypeModifiersLoc[NumberOfModifiers];
 4846   SourceLocation MapLoc;
 4849   SourceLocation ColonLoc;
 4872                         ArrayRef<SourceLocation> MapModifiersLoc,
 4876                         SourceLocation MapLoc, const OMPVarListLocTy &Locs,
 4915   void setMapTypeModifierLoc(unsigned I, SourceLocation TLoc) {
 4929   void setMapLoc(SourceLocation TLoc) { MapLoc = TLoc; }
 4932   void setColonLoc(SourceLocation Loc) { ColonLoc = Loc; }
 4960          ArrayRef<SourceLocation> MapModifiersLoc,
 4962          OpenMPMapClauseKind Type, bool TypeIsImplicit, SourceLocation TypeLoc);
 5000   SourceLocation getMapTypeModifierLoc(unsigned Cnt) const LLVM_READONLY {
 5012   ArrayRef<SourceLocation> getMapTypeModifiersLoc() const LLVM_READONLY {
 5017   SourceLocation getMapLoc() const LLVM_READONLY { return MapLoc; }
 5020   SourceLocation getColonLoc() const { return ColonLoc; }
 5062   SourceLocation LParenLoc;
 5083                     SourceLocation StartLoc, SourceLocation LParenLoc,
 5083                     SourceLocation StartLoc, SourceLocation LParenLoc,
 5084                     SourceLocation EndLoc)
 5096   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
 5099   SourceLocation getLParenLoc() const { return LParenLoc; }
 5137   SourceLocation LParenLoc;
 5159                        SourceLocation StartLoc, SourceLocation LParenLoc,
 5159                        SourceLocation StartLoc, SourceLocation LParenLoc,
 5160                        SourceLocation EndLoc)
 5172   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
 5175   SourceLocation getLParenLoc() const { return LParenLoc; }
 5213   SourceLocation LParenLoc;
 5234                     OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc,
 5235                     SourceLocation LParenLoc, SourceLocation EndLoc)
 5235                     SourceLocation LParenLoc, SourceLocation EndLoc)
 5247   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
 5250   SourceLocation getLParenLoc() const { return LParenLoc; }
 5287   SourceLocation LParenLoc;
 5305                      OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc,
 5306                      SourceLocation LParenLoc, SourceLocation EndLoc)
 5306                      SourceLocation LParenLoc, SourceLocation EndLoc)
 5318   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
 5321   SourceLocation getLParenLoc() const { return LParenLoc; }
 5355   OMPNogroupClause(SourceLocation StartLoc, SourceLocation EndLoc)
 5355   OMPNogroupClause(SourceLocation StartLoc, SourceLocation EndLoc)
 5394   SourceLocation LParenLoc;
 5412                     OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc,
 5413                     SourceLocation LParenLoc, SourceLocation EndLoc)
 5413                     SourceLocation LParenLoc, SourceLocation EndLoc)
 5425   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
 5428   SourceLocation getLParenLoc() const { return LParenLoc; }
 5461   SourceLocation LParenLoc;
 5476   OMPHintClause(Expr *Hint, SourceLocation StartLoc, SourceLocation LParenLoc,
 5476   OMPHintClause(Expr *Hint, SourceLocation StartLoc, SourceLocation LParenLoc,
 5477                 SourceLocation EndLoc)
 5485   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
 5488   SourceLocation getLParenLoc() const { return LParenLoc; }
 5523   SourceLocation LParenLoc;
 5529   SourceLocation KindLoc;
 5532   SourceLocation CommaLoc;
 5545   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
 5550   void setDistScheduleKindLoc(SourceLocation KLoc) { KindLoc = KLoc; }
 5555   void setCommaLoc(SourceLocation Loc) { CommaLoc = Loc; }
 5574   OMPDistScheduleClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 5574   OMPDistScheduleClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 5575                         SourceLocation KLoc, SourceLocation CommaLoc,
 5575                         SourceLocation KLoc, SourceLocation CommaLoc,
 5576                         SourceLocation EndLoc,
 5594   SourceLocation getLParenLoc() { return LParenLoc; }
 5597   SourceLocation getDistScheduleKindLoc() { return KindLoc; }
 5600   SourceLocation getCommaLoc() { return CommaLoc; }
 5641   SourceLocation LParenLoc;
 5647   SourceLocation ModifierLoc;
 5653   SourceLocation KindLoc;
 5668   void setDefaultmapModifierLoc(SourceLocation Loc) {
 5675   void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
 5680   void setDefaultmapKindLoc(SourceLocation KLoc) { KindLoc = KLoc; }
 5692   OMPDefaultmapClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 5692   OMPDefaultmapClause(SourceLocation StartLoc, SourceLocation LParenLoc,
 5693                       SourceLocation MLoc, SourceLocation KLoc,
 5693                       SourceLocation MLoc, SourceLocation KLoc,
 5694                       SourceLocation EndLoc, OpenMPDefaultmapClauseKind Kind,
 5712   SourceLocation getLParenLoc() { return LParenLoc; }
 5715   SourceLocation getDefaultmapKindLoc() { return KindLoc; }
 5718   SourceLocation getDefaultmapModifierLoc() const {
tools/clang/include/clang/AST/PrettyDeclStackTrace.h
   33   SourceLocation Loc;
   37   PrettyDeclStackTraceEntry(ASTContext &Ctx, Decl *D, SourceLocation Loc,
tools/clang/include/clang/AST/RawCommentList.h
  106   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
  107   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
tools/clang/include/clang/AST/SelectorLocationsKind.h
   46                                               ArrayRef<SourceLocation> SelLocs,
   48                                               SourceLocation EndLoc);
   56 SourceLocation getStandardSelectorLoc(unsigned Index,
   60                                       SourceLocation EndLoc);
   64                                               ArrayRef<SourceLocation> SelLocs,
   66                                               SourceLocation EndLoc);
   74 SourceLocation getStandardSelectorLoc(unsigned Index,
   78                                       SourceLocation EndLoc);
tools/clang/include/clang/AST/Stmt.h
  125     SourceLocation SemiLoc;
  137     SourceLocation LBraceLoc;
  145     SourceLocation IdentLoc;
  158     SourceLocation AttrLoc;
  180     SourceLocation IfLoc;
  200     SourceLocation SwitchLoc;
  213     SourceLocation WhileLoc;
  222     SourceLocation DoLoc;
  231     SourceLocation ForLoc;
  241     SourceLocation GotoLoc;
  250     SourceLocation ContinueLoc;
  259     SourceLocation BreakLoc;
  271     SourceLocation RetLoc;
  285     SourceLocation KeywordLoc;
  367     SourceLocation Loc;
  384     SourceLocation Loc;
  435     SourceLocation Loc;
  452     SourceLocation RBracketLoc;
  507     SourceLocation OperatorLoc;
  535     SourceLocation OpLoc;
  565     SourceLocation GenericLoc;
  625     SourceLocation Loc;
  634     SourceLocation Loc;
  646     SourceLocation Loc;
  659     SourceLocation ThrowLoc;
  669     SourceLocation Loc;
  679     SourceLocation Loc;
  688     SourceLocation RParenLoc;
  746     SourceLocation Loc;
  792     SourceLocation Loc;
  836     SourceLocation OperatorLoc;
  910     SourceLocation NameLoc;
  945     SourceLocation Loc;
 1112   SourceLocation getBeginLoc() const LLVM_READONLY;
 1113   SourceLocation getEndLoc() const LLVM_READONLY;
 1215   SourceLocation StartLoc, EndLoc;
 1218   DeclStmt(DeclGroupRef dg, SourceLocation startLoc, SourceLocation endLoc)
 1218   DeclStmt(DeclGroupRef dg, SourceLocation startLoc, SourceLocation endLoc)
 1235   void setStartLoc(SourceLocation L) { StartLoc = L; }
 1236   SourceLocation getEndLoc() const { return EndLoc; }
 1237   void setEndLoc(SourceLocation L) { EndLoc = L; }
 1239   SourceLocation getBeginLoc() const LLVM_READONLY { return StartLoc; }
 1287   NullStmt(SourceLocation L, bool hasLeadingEmptyMacro = false)
 1296   SourceLocation getSemiLoc() const { return NullStmtBits.SemiLoc; }
 1297   void setSemiLoc(SourceLocation L) { NullStmtBits.SemiLoc = L; }
 1303   SourceLocation getBeginLoc() const { return getSemiLoc(); }
 1304   SourceLocation getEndLoc() const { return getSemiLoc(); }
 1326   SourceLocation RBraceLoc;
 1328   CompoundStmt(ArrayRef<Stmt *> Stmts, SourceLocation LB, SourceLocation RB);
 1328   CompoundStmt(ArrayRef<Stmt *> Stmts, SourceLocation LB, SourceLocation RB);
 1335                               SourceLocation LB, SourceLocation RB);
 1335                               SourceLocation LB, SourceLocation RB);
 1338   explicit CompoundStmt(SourceLocation Loc)
 1424   SourceLocation getBeginLoc() const { return CompoundStmtBits.LBraceLoc; }
 1425   SourceLocation getEndLoc() const { return RBraceLoc; }
 1427   SourceLocation getLBracLoc() const { return CompoundStmtBits.LBraceLoc; }
 1428   SourceLocation getRBracLoc() const { return RBraceLoc; }
 1446   SourceLocation ColonLoc;
 1455   SwitchCase(StmtClass SC, SourceLocation KWLoc, SourceLocation ColonLoc)
 1455   SwitchCase(StmtClass SC, SourceLocation KWLoc, SourceLocation ColonLoc)
 1467   SourceLocation getKeywordLoc() const { return SwitchCaseBits.KeywordLoc; }
 1468   void setKeywordLoc(SourceLocation L) { SwitchCaseBits.KeywordLoc = L; }
 1469   SourceLocation getColonLoc() const { return ColonLoc; }
 1470   void setColonLoc(SourceLocation L) { ColonLoc = L; }
 1477   SourceLocation getBeginLoc() const { return getKeywordLoc(); }
 1478   inline SourceLocation getEndLoc() const LLVM_READONLY;
 1490       private llvm::TrailingObjects<CaseStmt, Stmt *, SourceLocation> {
 1515   unsigned numTrailingObjects(OverloadToken<SourceLocation>) const {
 1525   CaseStmt(Expr *lhs, Expr *rhs, SourceLocation caseLoc,
 1526            SourceLocation ellipsisLoc, SourceLocation colonLoc)
 1526            SourceLocation ellipsisLoc, SourceLocation colonLoc)
 1548                           SourceLocation caseLoc, SourceLocation ellipsisLoc,
 1548                           SourceLocation caseLoc, SourceLocation ellipsisLoc,
 1549                           SourceLocation colonLoc);
 1559   SourceLocation getCaseLoc() const { return getKeywordLoc(); }
 1560   void setCaseLoc(SourceLocation L) { setKeywordLoc(L); }
 1563   SourceLocation getEllipsisLoc() const {
 1564     return caseStmtIsGNURange() ? *getTrailingObjects<SourceLocation>()
 1570   void setEllipsisLoc(SourceLocation L) {
 1574     *getTrailingObjects<SourceLocation>() = L;
 1616   SourceLocation getBeginLoc() const { return getKeywordLoc(); }
 1617   SourceLocation getEndLoc() const LLVM_READONLY {
 1648   DefaultStmt(SourceLocation DL, SourceLocation CL, Stmt *substmt)
 1648   DefaultStmt(SourceLocation DL, SourceLocation CL, Stmt *substmt)
 1659   SourceLocation getDefaultLoc() const { return getKeywordLoc(); }
 1660   void setDefaultLoc(SourceLocation L) { setKeywordLoc(L); }
 1662   SourceLocation getBeginLoc() const { return getKeywordLoc(); }
 1663   SourceLocation getEndLoc() const LLVM_READONLY {
 1679 SourceLocation SwitchCase::getEndLoc() const {
 1726   LabelStmt(SourceLocation IL, LabelDecl *D, Stmt *substmt)
 1734   SourceLocation getIdentLoc() const { return LabelStmtBits.IdentLoc; }
 1735   void setIdentLoc(SourceLocation L) { LabelStmtBits.IdentLoc = L; }
 1746   SourceLocation getBeginLoc() const { return getIdentLoc(); }
 1747   SourceLocation getEndLoc() const LLVM_READONLY { return SubStmt->getEndLoc();}
 1772   AttributedStmt(SourceLocation Loc, ArrayRef<const Attr *> Attrs,
 1793   static AttributedStmt *Create(const ASTContext &C, SourceLocation Loc,
 1799   SourceLocation getAttrLoc() const { return AttributedStmtBits.AttrLoc; }
 1807   SourceLocation getBeginLoc() const { return getAttrLoc(); }
 1808   SourceLocation getEndLoc() const LLVM_READONLY { return SubStmt->getEndLoc();}
 1824       private llvm::TrailingObjects<IfStmt, Stmt *, SourceLocation> {
 1857   unsigned numTrailingObjects(OverloadToken<SourceLocation>) const {
 1870   IfStmt(const ASTContext &Ctx, SourceLocation IL, bool IsConstexpr, Stmt *Init,
 1871          VarDecl *Var, Expr *Cond, Stmt *Then, SourceLocation EL, Stmt *Else);
 1878   static IfStmt *Create(const ASTContext &Ctx, SourceLocation IL,
 1880                         Stmt *Then, SourceLocation EL = SourceLocation(),
 1981   SourceLocation getIfLoc() const { return IfStmtBits.IfLoc; }
 1982   void setIfLoc(SourceLocation IfLoc) { IfStmtBits.IfLoc = IfLoc; }
 1984   SourceLocation getElseLoc() const {
 1985     return hasElseStorage() ? *getTrailingObjects<SourceLocation>()
 1989   void setElseLoc(SourceLocation ElseLoc) {
 1992     *getTrailingObjects<SourceLocation>() = ElseLoc;
 2000   SourceLocation getBeginLoc() const { return getIfLoc(); }
 2001   SourceLocation getEndLoc() const LLVM_READONLY {
 2160   SourceLocation getSwitchLoc() const { return SwitchStmtBits.SwitchLoc; }
 2161   void setSwitchLoc(SourceLocation L) { SwitchStmtBits.SwitchLoc = L; }
 2163   void setBody(Stmt *S, SourceLocation SL) {
 2185   SourceLocation getBeginLoc() const { return getSwitchLoc(); }
 2186   SourceLocation getEndLoc() const LLVM_READONLY {
 2242             SourceLocation WL);
 2250                            Stmt *Body, SourceLocation WL);
 2311   SourceLocation getWhileLoc() const { return WhileStmtBits.WhileLoc; }
 2312   void setWhileLoc(SourceLocation L) { WhileStmtBits.WhileLoc = L; }
 2314   SourceLocation getBeginLoc() const { return getWhileLoc(); }
 2315   SourceLocation getEndLoc() const LLVM_READONLY {
 2341   SourceLocation WhileLoc;
 2342   SourceLocation RParenLoc; // Location of final ')' in do stmt condition.
 2345   DoStmt(Stmt *Body, Expr *Cond, SourceLocation DL, SourceLocation WL,
 2345   DoStmt(Stmt *Body, Expr *Cond, SourceLocation DL, SourceLocation WL,
 2346          SourceLocation RP)
 2367   SourceLocation getDoLoc() const { return DoStmtBits.DoLoc; }
 2368   void setDoLoc(SourceLocation L) { DoStmtBits.DoLoc = L; }
 2369   SourceLocation getWhileLoc() const { return WhileLoc; }
 2370   void setWhileLoc(SourceLocation L) { WhileLoc = L; }
 2371   SourceLocation getRParenLoc() const { return RParenLoc; }
 2372   void setRParenLoc(SourceLocation L) { RParenLoc = L; }
 2374   SourceLocation getBeginLoc() const { return getDoLoc(); }
 2375   SourceLocation getEndLoc() const { return getRParenLoc(); }
 2397   SourceLocation LParenLoc, RParenLoc;
 2401           Expr *Inc, Stmt *Body, SourceLocation FL, SourceLocation LP,
 2401           Expr *Inc, Stmt *Body, SourceLocation FL, SourceLocation LP,
 2402           SourceLocation RP);
 2440   SourceLocation getForLoc() const { return ForStmtBits.ForLoc; }
 2441   void setForLoc(SourceLocation L) { ForStmtBits.ForLoc = L; }
 2442   SourceLocation getLParenLoc() const { return LParenLoc; }
 2443   void setLParenLoc(SourceLocation L) { LParenLoc = L; }
 2444   SourceLocation getRParenLoc() const { return RParenLoc; }
 2445   void setRParenLoc(SourceLocation L) { RParenLoc = L; }
 2447   SourceLocation getBeginLoc() const { return getForLoc(); }
 2448   SourceLocation getEndLoc() const { return getBody()->getEndLoc(); }
 2467   SourceLocation LabelLoc;
 2470   GotoStmt(LabelDecl *label, SourceLocation GL, SourceLocation LL)
 2470   GotoStmt(LabelDecl *label, SourceLocation GL, SourceLocation LL)
 2481   SourceLocation getGotoLoc() const { return GotoStmtBits.GotoLoc; }
 2482   void setGotoLoc(SourceLocation L) { GotoStmtBits.GotoLoc = L; }
 2483   SourceLocation getLabelLoc() const { return LabelLoc; }
 2484   void setLabelLoc(SourceLocation L) { LabelLoc = L; }
 2486   SourceLocation getBeginLoc() const { return getGotoLoc(); }
 2487   SourceLocation getEndLoc() const { return getLabelLoc(); }
 2505   SourceLocation StarLoc;
 2509   IndirectGotoStmt(SourceLocation gotoLoc, SourceLocation starLoc, Expr *target)
 2509   IndirectGotoStmt(SourceLocation gotoLoc, SourceLocation starLoc, Expr *target)
 2519   void setGotoLoc(SourceLocation L) { GotoStmtBits.GotoLoc = L; }
 2520   SourceLocation getGotoLoc() const { return GotoStmtBits.GotoLoc; }
 2521   void setStarLoc(SourceLocation L) { StarLoc = L; }
 2522   SourceLocation getStarLoc() const { return StarLoc; }
 2537   SourceLocation getBeginLoc() const { return getGotoLoc(); }
 2538   SourceLocation getEndLoc() const LLVM_READONLY { return Target->getEndLoc(); }
 2555   ContinueStmt(SourceLocation CL) : Stmt(ContinueStmtClass) {
 2562   SourceLocation getContinueLoc() const { return ContinueStmtBits.ContinueLoc; }
 2563   void setContinueLoc(SourceLocation L) { ContinueStmtBits.ContinueLoc = L; }
 2565   SourceLocation getBeginLoc() const { return getContinueLoc(); }
 2566   SourceLocation getEndLoc() const { return getContinueLoc(); }
 2585   BreakStmt(SourceLocation BL) : Stmt(BreakStmtClass) {
 2592   SourceLocation getBreakLoc() const { return BreakStmtBits.BreakLoc; }
 2593   void setBreakLoc(SourceLocation L) { BreakStmtBits.BreakLoc = L; }
 2595   SourceLocation getBeginLoc() const { return getBreakLoc(); }
 2596   SourceLocation getEndLoc() const { return getBreakLoc(); }
 2639   ReturnStmt(SourceLocation RL, Expr *E, const VarDecl *NRVOCandidate);
 2646   static ReturnStmt *Create(const ASTContext &Ctx, SourceLocation RL, Expr *E,
 2676   SourceLocation getReturnLoc() const { return ReturnStmtBits.RetLoc; }
 2677   void setReturnLoc(SourceLocation L) { ReturnStmtBits.RetLoc = L; }
 2679   SourceLocation getBeginLoc() const { return getReturnLoc(); }
 2680   SourceLocation getEndLoc() const LLVM_READONLY {
 2707   SourceLocation AsmLoc;
 2723   AsmStmt(StmtClass SC, SourceLocation asmloc, bool issimple, bool isvolatile,
 2733   SourceLocation getAsmLoc() const { return AsmLoc; }
 2734   void setAsmLoc(SourceLocation L) { AsmLoc = L; }
 2742   SourceLocation getBeginLoc() const LLVM_READONLY { return {}; }
 2743   SourceLocation getEndLoc() const LLVM_READONLY { return {}; }
 2865   SourceLocation RParenLoc;
 2875   GCCAsmStmt(const ASTContext &C, SourceLocation asmloc, bool issimple,
 2880              SourceLocation rparenloc);
 2885   SourceLocation getRParenLoc() const { return RParenLoc; }
 2886   void setRParenLoc(SourceLocation L) { RParenLoc = L; }
 2914     AsmStringPiece(unsigned OpNo, const std::string &S, SourceLocation Begin,
 2915                    SourceLocation End)
 3076   SourceLocation getBeginLoc() const LLVM_READONLY { return AsmLoc; }
 3077   SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; }
 3088   SourceLocation LBraceLoc, EndLoc;
 3098   MSAsmStmt(const ASTContext &C, SourceLocation asmloc,
 3099             SourceLocation lbraceloc, bool issimple, bool isvolatile,
 3103             ArrayRef<StringRef> clobbers, SourceLocation endloc);
 3108   SourceLocation getLBraceLoc() const { return LBraceLoc; }
 3109   void setLBraceLoc(SourceLocation L) { LBraceLoc = L; }
 3110   SourceLocation getEndLoc() const { return EndLoc; }
 3111   void setEndLoc(SourceLocation L) { EndLoc = L; }
 3174   SourceLocation getBeginLoc() const LLVM_READONLY { return AsmLoc; }
 3193   SourceLocation  Loc;
 3198   SEHExceptStmt(SourceLocation Loc, Expr *FilterExpr, Stmt *Block);
 3203                                SourceLocation ExceptLoc,
 3207   SourceLocation getBeginLoc() const LLVM_READONLY { return getExceptLoc(); }
 3209   SourceLocation getExceptLoc() const { return Loc; }
 3210   SourceLocation getEndLoc() const { return getBlock()->getEndLoc(); }
 3237   SourceLocation  Loc;
 3240   SEHFinallyStmt(SourceLocation Loc, Stmt *Block);
 3245                                 SourceLocation FinallyLoc,
 3248   SourceLocation getBeginLoc() const LLVM_READONLY { return getFinallyLoc(); }
 3250   SourceLocation getFinallyLoc() const { return Loc; }
 3251   SourceLocation getEndLoc() const { return Block->getEndLoc(); }
 3273   SourceLocation  TryLoc;
 3279              SourceLocation TryLoc,
 3287                             SourceLocation TryLoc, Stmt *TryBlock,
 3290   SourceLocation getBeginLoc() const LLVM_READONLY { return getTryLoc(); }
 3292   SourceLocation getTryLoc() const { return TryLoc; }
 3293   SourceLocation getEndLoc() const { return Children[HANDLER]->getEndLoc(); }
 3322   SourceLocation LeaveLoc;
 3325   explicit SEHLeaveStmt(SourceLocation LL)
 3331   SourceLocation getLeaveLoc() const { return LeaveLoc; }
 3332   void setLeaveLoc(SourceLocation L) { LeaveLoc = L; }
 3334   SourceLocation getBeginLoc() const LLVM_READONLY { return LeaveLoc; }
 3335   SourceLocation getEndLoc() const LLVM_READONLY { return LeaveLoc; }
 3375     SourceLocation Loc;
 3387     Capture(SourceLocation Loc, VariableCaptureKind Kind,
 3395     SourceLocation getLocation() const { return Loc; }
 3552   SourceLocation getBeginLoc() const LLVM_READONLY {
 3556   SourceLocation getEndLoc() const LLVM_READONLY {
tools/clang/include/clang/AST/StmtCXX.h
   29   SourceLocation CatchLoc;
   36   CXXCatchStmt(SourceLocation catchLoc, VarDecl *exDecl, Stmt *handlerBlock)
   43   SourceLocation getBeginLoc() const LLVM_READONLY { return CatchLoc; }
   44   SourceLocation getEndLoc() const LLVM_READONLY {
   48   SourceLocation getCatchLoc() const { return CatchLoc; }
   74   SourceLocation TryLoc;
   78   CXXTryStmt(SourceLocation tryLoc, Stmt *tryBlock, ArrayRef<Stmt*> handlers);
   86   static CXXTryStmt *Create(const ASTContext &C, SourceLocation tryLoc,
   92   SourceLocation getBeginLoc() const LLVM_READONLY { return getTryLoc(); }
   94   SourceLocation getTryLoc() const { return TryLoc; }
   95   SourceLocation getEndLoc() const {
  135   SourceLocation ForLoc;
  140   SourceLocation CoawaitLoc;
  141   SourceLocation ColonLoc;
  142   SourceLocation RParenLoc;
  148                   Stmt *Body, SourceLocation FL, SourceLocation CAL,
  148                   Stmt *Body, SourceLocation FL, SourceLocation CAL,
  149                   SourceLocation CL, SourceLocation RPL);
  149                   SourceLocation CL, SourceLocation RPL);
  201   SourceLocation getForLoc() const { return ForLoc; }
  202   SourceLocation getCoawaitLoc() const { return CoawaitLoc; }
  203   SourceLocation getColonLoc() const { return ColonLoc; }
  204   SourceLocation getRParenLoc() const { return RParenLoc; }
  206   SourceLocation getBeginLoc() const LLVM_READONLY { return ForLoc; }
  207   SourceLocation getEndLoc() const LLVM_READONLY {
  253   SourceLocation KeywordLoc;
  263   MSDependentExistsStmt(SourceLocation KeywordLoc, bool IsIfExists,
  274   SourceLocation getKeywordLoc() const { return KeywordLoc; }
  296   SourceLocation getBeginLoc() const LLVM_READONLY { return KeywordLoc; }
  297   SourceLocation getEndLoc() const LLVM_READONLY {
  421   SourceLocation getBeginLoc() const LLVM_READONLY {
  425   SourceLocation getEndLoc() const LLVM_READONLY {
  457   SourceLocation CoreturnLoc;
  466   CoreturnStmt(SourceLocation CoreturnLoc, Stmt *Operand, Stmt *PromiseCall,
  476   SourceLocation getKeywordLoc() const { return CoreturnLoc; }
  492   SourceLocation getBeginLoc() const LLVM_READONLY { return CoreturnLoc; }
  493   SourceLocation getEndLoc() const LLVM_READONLY {
tools/clang/include/clang/AST/StmtObjC.h
   26   SourceLocation ForLoc;
   27   SourceLocation RParenLoc;
   30                         SourceLocation FCL, SourceLocation RPL);
   30                         SourceLocation FCL, SourceLocation RPL);
   52   SourceLocation getForLoc() const { return ForLoc; }
   53   void setForLoc(SourceLocation Loc) { ForLoc = Loc; }
   54   SourceLocation getRParenLoc() const { return RParenLoc; }
   55   void setRParenLoc(SourceLocation Loc) { RParenLoc = Loc; }
   57   SourceLocation getBeginLoc() const LLVM_READONLY { return ForLoc; }
   58   SourceLocation getEndLoc() const LLVM_READONLY {
   81   SourceLocation AtCatchLoc, RParenLoc;
   84   ObjCAtCatchStmt(SourceLocation atCatchLoc, SourceLocation rparenloc,
   84   ObjCAtCatchStmt(SourceLocation atCatchLoc, SourceLocation rparenloc,
  105   SourceLocation getAtCatchLoc() const { return AtCatchLoc; }
  106   void setAtCatchLoc(SourceLocation Loc) { AtCatchLoc = Loc; }
  107   SourceLocation getRParenLoc() const { return RParenLoc; }
  108   void setRParenLoc(SourceLocation Loc) { RParenLoc = Loc; }
  110   SourceLocation getBeginLoc() const LLVM_READONLY { return AtCatchLoc; }
  111   SourceLocation getEndLoc() const LLVM_READONLY { return Body->getEndLoc(); }
  128   SourceLocation AtFinallyLoc;
  132   ObjCAtFinallyStmt(SourceLocation atFinallyLoc, Stmt *atFinallyStmt)
  143   SourceLocation getBeginLoc() const LLVM_READONLY { return AtFinallyLoc; }
  144   SourceLocation getEndLoc() const LLVM_READONLY {
  148   SourceLocation getAtFinallyLoc() const { return AtFinallyLoc; }
  149   void setAtFinallyLoc(SourceLocation Loc) { AtFinallyLoc = Loc; }
  168   SourceLocation AtTryLoc;
  186   ObjCAtTryStmt(SourceLocation atTryLoc, Stmt *atTryStmt,
  197                                SourceLocation atTryLoc, Stmt *atTryStmt,
  204   SourceLocation getAtTryLoc() const { return AtTryLoc; }
  205   void setAtTryLoc(SourceLocation Loc) { AtTryLoc = Loc; }
  252   SourceLocation getBeginLoc() const LLVM_READONLY { return AtTryLoc; }
  253   SourceLocation getEndLoc() const LLVM_READONLY;
  279   SourceLocation AtSynchronizedLoc;
  284   ObjCAtSynchronizedStmt(SourceLocation atSynchronizedLoc, Stmt *synchExpr,
  294   SourceLocation getAtSynchronizedLoc() const { return AtSynchronizedLoc; }
  295   void setAtSynchronizedLoc(SourceLocation Loc) { AtSynchronizedLoc = Loc; }
  313   SourceLocation getBeginLoc() const LLVM_READONLY { return AtSynchronizedLoc; }
  314   SourceLocation getEndLoc() const LLVM_READONLY {
  333   SourceLocation AtThrowLoc;
  337   ObjCAtThrowStmt(SourceLocation atThrowLoc, Stmt *throwExpr)
  348   SourceLocation getThrowLoc() const LLVM_READONLY { return AtThrowLoc; }
  349   void setThrowLoc(SourceLocation Loc) { AtThrowLoc = Loc; }
  351   SourceLocation getBeginLoc() const LLVM_READONLY { return AtThrowLoc; }
  352   SourceLocation getEndLoc() const LLVM_READONLY {
  369   SourceLocation AtLoc;
  373   ObjCAutoreleasePoolStmt(SourceLocation atLoc, Stmt *subStmt)
  383   SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; }
  384   SourceLocation getEndLoc() const LLVM_READONLY {
  388   SourceLocation getAtLoc() const { return AtLoc; }
  389   void setAtLoc(SourceLocation Loc) { AtLoc = Loc; }
tools/clang/include/clang/AST/StmtOpenMP.h
   38   SourceLocation StartLoc;
   40   SourceLocation EndLoc;
   68                          SourceLocation StartLoc, SourceLocation EndLoc,
   68                          SourceLocation StartLoc, SourceLocation EndLoc,
  225   SourceLocation getBeginLoc() const { return StartLoc; }
  227   SourceLocation getEndLoc() const { return EndLoc; }
  233   void setLocStart(SourceLocation Loc) { StartLoc = Loc; }
  238   void setLocEnd(SourceLocation Loc) { EndLoc = Loc; }
  367   OMPParallelDirective(SourceLocation StartLoc, SourceLocation EndLoc,
  367   OMPParallelDirective(SourceLocation StartLoc, SourceLocation EndLoc,
  397   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  397   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  560                    SourceLocation StartLoc, SourceLocation EndLoc,
  560                    SourceLocation StartLoc, SourceLocation EndLoc,
 1209   OMPSimdDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 1209   OMPSimdDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 1235   static OMPSimdDirective *Create(const ASTContext &C, SourceLocation StartLoc,
 1236                                   SourceLocation EndLoc, unsigned CollapsedNum,
 1278   OMPForDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 1278   OMPForDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 1309   static OMPForDirective *Create(const ASTContext &C, SourceLocation StartLoc,
 1310                                  SourceLocation EndLoc, unsigned CollapsedNum,
 1351   OMPForSimdDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 1351   OMPForSimdDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 1378   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1378   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1419   OMPSectionsDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 1419   OMPSectionsDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 1449   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1449   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1486   OMPSectionDirective(SourceLocation StartLoc, SourceLocation EndLoc)
 1486   OMPSectionDirective(SourceLocation StartLoc, SourceLocation EndLoc)
 1508                                      SourceLocation StartLoc,
 1509                                      SourceLocation EndLoc,
 1545   OMPSingleDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 1545   OMPSingleDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 1569   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1569   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1599   OMPMasterDirective(SourceLocation StartLoc, SourceLocation EndLoc)
 1599   OMPMasterDirective(SourceLocation StartLoc, SourceLocation EndLoc)
 1618                                     SourceLocation StartLoc,
 1619                                     SourceLocation EndLoc,
 1650   OMPCriticalDirective(const DeclarationNameInfo &Name, SourceLocation StartLoc,
 1651                        SourceLocation EndLoc, unsigned NumClauses)
 1684          SourceLocation StartLoc, SourceLocation EndLoc,
 1684          SourceLocation StartLoc, SourceLocation EndLoc,
 1726   OMPParallelForDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 1726   OMPParallelForDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 1759   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1759   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1802   OMPParallelForSimdDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 1802   OMPParallelForSimdDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 1831   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1831   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1873   OMPParallelSectionsDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 1873   OMPParallelSectionsDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 1904   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1904   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1943   OMPTaskDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 1943   OMPTaskDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 1972   static OMPTaskDirective *Create(const ASTContext &C, SourceLocation StartLoc,
 1973                                   SourceLocation EndLoc,
 2007   OMPTaskyieldDirective(SourceLocation StartLoc, SourceLocation EndLoc)
 2007   OMPTaskyieldDirective(SourceLocation StartLoc, SourceLocation EndLoc)
 2025   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc);
 2025   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc);
 2051   OMPBarrierDirective(SourceLocation StartLoc, SourceLocation EndLoc)
 2051   OMPBarrierDirective(SourceLocation StartLoc, SourceLocation EndLoc)
 2069   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc);
 2069   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc);
 2095   OMPTaskwaitDirective(SourceLocation StartLoc, SourceLocation EndLoc)
 2095   OMPTaskwaitDirective(SourceLocation StartLoc, SourceLocation EndLoc)
 2113   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc);
 2113   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc);
 2140   OMPTaskgroupDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2140   OMPTaskgroupDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2169   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2169   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2213   OMPFlushDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2213   OMPFlushDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2236   static OMPFlushDirective *Create(const ASTContext &C, SourceLocation StartLoc,
 2237                                    SourceLocation EndLoc,
 2268   OMPOrderedDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2268   OMPOrderedDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2292   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2292   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2343   OMPAtomicDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2343   OMPAtomicDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2391   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2391   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2457   OMPTargetDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2457   OMPTargetDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2481   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2481   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2515   OMPTargetDataDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2515   OMPTargetDataDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2540   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2540   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2573   OMPTargetEnterDataDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2573   OMPTargetEnterDataDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2599   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2599   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2632   OMPTargetExitDataDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2632   OMPTargetExitDataDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2658   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2658   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2690   OMPTargetParallelDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2690   OMPTargetParallelDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2716   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2716   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2755   OMPTargetParallelForDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2755   OMPTargetParallelForDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2790   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2790   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2830   OMPTeamsDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2830   OMPTeamsDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2853   static OMPTeamsDirective *Create(const ASTContext &C, SourceLocation StartLoc,
 2854                                    SourceLocation EndLoc,
 2887   OMPCancellationPointDirective(SourceLocation StartLoc, SourceLocation EndLoc)
 2887   OMPCancellationPointDirective(SourceLocation StartLoc, SourceLocation EndLoc)
 2912   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2912   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2946   OMPCancelDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2946   OMPCancelDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 2974   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2974   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3011   OMPTaskLoopDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 3011   OMPTaskLoopDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 3038   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3038   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3076   OMPTaskLoopSimdDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 3076   OMPTaskLoopSimdDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 3104   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3104   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3143   OMPMasterTaskLoopDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 3143   OMPMasterTaskLoopDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 3172   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3172   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3211   OMPMasterTaskLoopSimdDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 3211   OMPMasterTaskLoopSimdDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 3240   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3240   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3279   OMPParallelMasterTaskLoopDirective(SourceLocation StartLoc,
 3280                                      SourceLocation EndLoc,
 3309   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3309   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3348   OMPDistributeDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 3348   OMPDistributeDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 3377   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3377   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3414   OMPTargetUpdateDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 3414   OMPTargetUpdateDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 3439   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3439   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3477   OMPDistributeParallelForDirective(SourceLocation StartLoc,
 3478                                     SourceLocation EndLoc,
 3512   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3512   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3555   OMPDistributeParallelForSimdDirective(SourceLocation StartLoc,
 3556                                         SourceLocation EndLoc,
 3587       const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3587       const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3624   OMPDistributeSimdDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 3624   OMPDistributeSimdDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 3653   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3653   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3692   OMPTargetParallelForSimdDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 3692   OMPTargetParallelForSimdDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 3721   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3721   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3760   OMPTargetSimdDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 3760   OMPTargetSimdDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 3788   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3788   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3826   OMPTeamsDistributeDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 3826   OMPTeamsDistributeDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 3855   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3855   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3894   OMPTeamsDistributeSimdDirective(SourceLocation StartLoc,
 3895                                   SourceLocation EndLoc, unsigned CollapsedNum,
 3924   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3924   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3965   OMPTeamsDistributeParallelForSimdDirective(SourceLocation StartLoc,
 3966                                              SourceLocation EndLoc,
 3997   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 3997   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 4037   OMPTeamsDistributeParallelForDirective(SourceLocation StartLoc,
 4038                                          SourceLocation EndLoc,
 4073   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 4073   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 4111   OMPTargetTeamsDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 4111   OMPTargetTeamsDirective(SourceLocation StartLoc, SourceLocation EndLoc,
 4136                                          SourceLocation StartLoc,
 4137                                          SourceLocation EndLoc,
 4172   OMPTargetTeamsDistributeDirective(SourceLocation StartLoc,
 4173                                     SourceLocation EndLoc,
 4202   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 4202   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 4243   OMPTargetTeamsDistributeParallelForDirective(SourceLocation StartLoc,
 4244                                                SourceLocation EndLoc,
 4282   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 4282   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 4325   OMPTargetTeamsDistributeParallelForSimdDirective(SourceLocation StartLoc,
 4326                                                    SourceLocation EndLoc,
 4358   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 4358   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 4397   OMPTargetTeamsDistributeSimdDirective(SourceLocation StartLoc,
 4398                                         SourceLocation EndLoc,
 4428   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 4428   Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
tools/clang/include/clang/AST/TemplateBase.h
  417                           SourceLocation TemplateNameLoc,
  418                           SourceLocation EllipsisLoc) {
  438   SourceLocation getTemplateNameLoc() const {
  439     return SourceLocation::getFromRawEncoding(Template.TemplateNameLoc);
  442   SourceLocation getTemplateEllipsisLoc() const {
  443     return SourceLocation::getFromRawEncoding(Template.EllipsisLoc);
  478                       SourceLocation TemplateNameLoc,
  479                       SourceLocation EllipsisLoc = SourceLocation())
  487   SourceLocation getLocation() const {
  538   SourceLocation getTemplateNameLoc() const {
  545   SourceLocation getTemplateEllipsisLoc() const {
  556   SourceLocation LAngleLoc;
  557   SourceLocation RAngleLoc;
  562   TemplateArgumentListInfo(SourceLocation LAngleLoc,
  563                            SourceLocation RAngleLoc)
  570   SourceLocation getLAngleLoc() const { return LAngleLoc; }
  571   SourceLocation getRAngleLoc() const { return RAngleLoc; }
  573   void setLAngleLoc(SourceLocation Loc) { LAngleLoc = Loc; }
  574   void setRAngleLoc(SourceLocation Loc) { RAngleLoc = Loc; }
  614   SourceLocation LAngleLoc;
  617   SourceLocation RAngleLoc;
  622   SourceLocation getLAngleLoc() const { return LAngleLoc; }
  623   SourceLocation getRAngleLoc() const { return RAngleLoc; }
  652   SourceLocation LAngleLoc;
  655   SourceLocation RAngleLoc;
  661   SourceLocation TemplateKWLoc;
  666   void initializeFrom(SourceLocation TemplateKWLoc,
  669   void initializeFrom(SourceLocation TemplateKWLoc,
  674   void initializeFrom(SourceLocation TemplateKWLoc);
tools/clang/include/clang/AST/TextNodeDumper.h
  180   void dumpLocation(SourceLocation Loc);
tools/clang/include/clang/AST/Type.h
 3036   SourceLocation getLBracketLoc() const { return Brackets.getBegin(); }
 3037   SourceLocation getRBracketLoc() const { return Brackets.getEnd(); }
 3093   SourceLocation getLBracketLoc() const { return Brackets.getBegin(); }
 3094   SourceLocation getRBracketLoc() const { return Brackets.getEnd(); }
 3130   SourceLocation loc;
 3134                             SourceLocation loc);
 3139   SourceLocation getAttributeLoc() const { return loc; }
 3175   SourceLocation loc;
 3178                               QualType can, Expr *SizeExpr, SourceLocation loc);
 3183   SourceLocation getAttributeLoc() const { return loc; }
 3289   SourceLocation Loc;
 3293                            SourceLocation Loc, VectorType::VectorKind vecKind);
 3298   SourceLocation getAttributeLoc() const { return Loc; }
tools/clang/include/clang/AST/TypeLoc.h
  144   SourceLocation getBeginLoc() const;
  147   SourceLocation getEndLoc() const;
  192   void initialize(ASTContext &Context, SourceLocation Loc) const {
  225   SourceLocation findNullabilityLoc() const;
  233                              SourceLocation Loc);
  287   void initializeLocal(ASTContext &Context, SourceLocation Loc) {
  504   SourceLocation NameLoc;
  519   SourceLocation getNameLoc() const {
  523   void setNameLoc(SourceLocation Loc) {
  531   void initializeLocal(ASTContext &Context, SourceLocation Loc) {
  551   SourceLocation getBuiltinLoc() const {
  555   void setBuiltinLoc(SourceLocation Loc) {
  569   SourceLocation getNameLoc() const { return getBuiltinLoc(); }
  653   void initializeLocal(ASTContext &Context, SourceLocation Loc) {
  743   SourceLocation NameLoc;
  753   SourceLocation *getProtocolLocArray() const {
  760   SourceLocation getNameLoc() const {
  764   void setNameLoc(SourceLocation Loc) {
  768   SourceLocation getProtocolLAngleLoc() const {
  774   void setProtocolLAngleLoc(SourceLocation Loc) {
  778   SourceLocation getProtocolRAngleLoc() const {
  784   void setProtocolRAngleLoc(SourceLocation Loc) {
  792   SourceLocation getProtocolLoc(unsigned i) const {
  797   void setProtocolLoc(unsigned i, SourceLocation Loc) {
  807   ArrayRef<SourceLocation> getProtocolLocs() const {
  811   void initializeLocal(ASTContext &Context, SourceLocation Loc);
  817     return (this->getNumProtocols() + 2) * sizeof(SourceLocation) ;
  821     return alignof(SourceLocation);
  825     SourceLocation start = getNameLoc();
  826     SourceLocation end = getProtocolRAngleLoc();
  897   void initializeLocal(ASTContext &Context, SourceLocation loc) {
  907   SourceLocation TypeArgsLAngleLoc;
  908   SourceLocation TypeArgsRAngleLoc;
  909   SourceLocation ProtocolLAngleLoc;
  910   SourceLocation ProtocolRAngleLoc;
  930   SourceLocation *getProtocolLocArray() const {
  935   SourceLocation getTypeArgsLAngleLoc() const {
  939   void setTypeArgsLAngleLoc(SourceLocation Loc) {
  943   SourceLocation getTypeArgsRAngleLoc() const {
  947   void setTypeArgsRAngleLoc(SourceLocation Loc) {
  965   SourceLocation getProtocolLAngleLoc() const {
  969   void setProtocolLAngleLoc(SourceLocation Loc) {
  973   SourceLocation getProtocolRAngleLoc() const {
  977   void setProtocolRAngleLoc(SourceLocation Loc) {
  985   SourceLocation getProtocolLoc(unsigned i) const {
  990   void setProtocolLoc(unsigned i, SourceLocation Loc) {
 1001   ArrayRef<SourceLocation> getProtocolLocs() const {
 1018     SourceLocation start = getTypeArgsLAngleLoc();
 1021     SourceLocation end = getProtocolRAngleLoc();
 1027   void initializeLocal(ASTContext &Context, SourceLocation Loc);
 1031          + this->getNumProtocols() * sizeof(SourceLocation);
 1046   SourceLocation NameLoc;
 1047   SourceLocation NameEndLoc;
 1060   SourceLocation getNameLoc() const {
 1064   void setNameLoc(SourceLocation Loc) {
 1072   SourceLocation getNameEndLoc() const {
 1076   void setNameEndLoc(SourceLocation Loc) {
 1080   void initializeLocal(ASTContext &Context, SourceLocation Loc) {
 1087   SourceLocation ExpansionLoc;
 1094   void initializeLocal(ASTContext &Context, SourceLocation Loc) {
 1104   SourceLocation getExpansionLoc() const {
 1108   void setExpansionLoc(SourceLocation Loc) {
 1120   SourceLocation LParenLoc;
 1121   SourceLocation RParenLoc;
 1128   SourceLocation getLParenLoc() const {
 1132   SourceLocation getRParenLoc() const {
 1136   void setLParenLoc(SourceLocation Loc) {
 1140   void setRParenLoc(SourceLocation Loc) {
 1148   void initializeLocal(ASTContext &Context, SourceLocation Loc) {
 1177   void initializeLocal(ASTContext &Context, SourceLocation Loc) {
 1203   SourceLocation StarLoc;
 1211   SourceLocation getSigilLoc() const {
 1215   void setSigilLoc(SourceLocation Loc) {
 1227   void initializeLocal(ASTContext &Context, SourceLocation Loc) {
 1240   SourceLocation getStarLoc() const {
 1244   void setStarLoc(SourceLocation Loc) {
 1253   SourceLocation getCaretLoc() const {
 1257   void setCaretLoc(SourceLocation Loc) {
 1271   SourceLocation getStarLoc() const {
 1275   void setStarLoc(SourceLocation Loc) {
 1291   void initializeLocal(ASTContext &Context, SourceLocation Loc) {
 1309   SourceLocation getStarLoc() const {
 1313   void setStarLoc(SourceLocation Loc) {
 1331   SourceLocation getAmpLoc() const {
 1335   void setAmpLoc(SourceLocation Loc) {
 1345   SourceLocation getAmpAmpLoc() const {
 1349   void setAmpAmpLoc(SourceLocation Loc) {
 1355   SourceLocation LocalRangeBegin;
 1356   SourceLocation LParenLoc;
 1357   SourceLocation RParenLoc;
 1358   SourceLocation LocalRangeEnd;
 1381   SourceLocation getLocalRangeBegin() const {
 1385   void setLocalRangeBegin(SourceLocation L) {
 1389   SourceLocation getLocalRangeEnd() const {
 1393   void setLocalRangeEnd(SourceLocation L) {
 1397   SourceLocation getLParenLoc() const {
 1401   void setLParenLoc(SourceLocation Loc) {
 1405   SourceLocation getRParenLoc() const {
 1409   void setRParenLoc(SourceLocation Loc) {
 1454   void initializeLocal(ASTContext &Context, SourceLocation Loc) {
 1490   SourceLocation LBracketLoc, RBracketLoc;
 1500   SourceLocation getLBracketLoc() const {
 1504   void setLBracketLoc(SourceLocation Loc) {
 1508   SourceLocation getRBracketLoc() const {
 1512   void setRBracketLoc(SourceLocation Loc) {
 1536   void initializeLocal(ASTContext &Context, SourceLocation Loc) {
 1562   void initializeLocal(ASTContext &Context, SourceLocation Loc) {
 1576   SourceLocation NameLoc;
 1580   SourceLocation TemplateKWLoc;
 1581   SourceLocation LAngleLoc;
 1582   SourceLocation RAngleLoc;
 1591   SourceLocation getTemplateKeywordLoc() const {
 1595   void setTemplateKeywordLoc(SourceLocation Loc) {
 1599   SourceLocation getLAngleLoc() const {
 1603   void setLAngleLoc(SourceLocation Loc) {
 1607   SourceLocation getRAngleLoc() const {
 1611   void setRAngleLoc(SourceLocation Loc) {
 1631   SourceLocation getTemplateNameLoc() const {
 1635   void setTemplateNameLoc(SourceLocation Loc) {
 1658   void initializeLocal(ASTContext &Context, SourceLocation Loc) {
 1670                                 SourceLocation Loc);
 1689   SourceLocation AttrLoc;
 1701   SourceLocation getAttrNameLoc() const {
 1704   void setAttrNameLoc(SourceLocation loc) {
 1747   void initializeLocal(ASTContext &Context, SourceLocation loc) {
 1795   SourceLocation TypeofLoc;
 1796   SourceLocation LParenLoc;
 1797   SourceLocation RParenLoc;
 1811   SourceLocation getTypeofLoc() const {
 1815   void setTypeofLoc(SourceLocation Loc) {
 1819   SourceLocation getLParenLoc() const {
 1823   void setLParenLoc(SourceLocation Loc) {
 1827   SourceLocation getRParenLoc() const {
 1831   void setRParenLoc(SourceLocation Loc) {
 1848   void initializeLocal(ASTContext &Context, SourceLocation Loc) {
 1884   void initializeLocal(ASTContext &Context, SourceLocation Loc);
 1898   SourceLocation KWLoc, LParenLoc, RParenLoc;
 1907   SourceLocation getKWLoc() const { return getLocalData()->KWLoc; }
 1908   void setKWLoc(SourceLocation Loc) { getLocalData()->KWLoc = Loc; }
 1910   SourceLocation getLParenLoc() const { return getLocalData()->LParenLoc; }
 1911   void setLParenLoc(SourceLocation Loc) { getLocalData()->LParenLoc = Loc; }
 1913   SourceLocation getRParenLoc() const { return getLocalData()->RParenLoc; }
 1914   void setRParenLoc(SourceLocation Loc) { getLocalData()->RParenLoc = Loc; }
 1937   void initializeLocal(ASTContext &Context, SourceLocation Loc);
 1953   SourceLocation getTemplateNameLoc() const {
 1957   void setTemplateNameLoc(SourceLocation Loc) {
 1963   SourceLocation ElaboratedKWLoc;
 1974   SourceLocation getElaboratedKeywordLoc() const {
 1978   void setElaboratedKeywordLoc(SourceLocation Loc) {
 2005   void initializeLocal(ASTContext &Context, SourceLocation Loc);
 2025   SourceLocation NameLoc;
 2033   SourceLocation getElaboratedKeywordLoc() const {
 2037   void setElaboratedKeywordLoc(SourceLocation Loc) {
 2053   SourceLocation getNameLoc() const {
 2057   void setNameLoc(SourceLocation Loc) {
 2074   void initializeLocal(ASTContext &Context, SourceLocation Loc);
 2078   SourceLocation TemplateKWLoc;
 2079   SourceLocation LAngleLoc;
 2080   SourceLocation RAngleLoc;
 2090   SourceLocation getElaboratedKeywordLoc() const {
 2094   void setElaboratedKeywordLoc(SourceLocation Loc) {
 2122   SourceLocation getTemplateKeywordLoc() const {
 2126   void setTemplateKeywordLoc(SourceLocation Loc) {
 2130   SourceLocation getTemplateNameLoc() const {
 2134   void setTemplateNameLoc(SourceLocation Loc) {
 2138   SourceLocation getLAngleLoc() const {
 2142   void setLAngleLoc(SourceLocation Loc) {
 2146   SourceLocation getRAngleLoc() const {
 2150   void setRAngleLoc(SourceLocation Loc) {
 2187   void initializeLocal(ASTContext &Context, SourceLocation Loc);
 2204   SourceLocation EllipsisLoc;
 2211   SourceLocation getEllipsisLoc() const {
 2215   void setEllipsisLoc(SourceLocation Loc) {
 2223   void initializeLocal(ASTContext &Context, SourceLocation Loc) {
 2237   SourceLocation KWLoc, LParenLoc, RParenLoc;
 2251   SourceLocation getKWLoc() const {
 2255   void setKWLoc(SourceLocation Loc) {
 2259   SourceLocation getLParenLoc() const {
 2263   void setLParenLoc(SourceLocation Loc) {
 2267   SourceLocation getRParenLoc() const {
 2271   void setRParenLoc(SourceLocation Loc) {
 2284   void initializeLocal(ASTContext &Context, SourceLocation Loc) {
 2296   SourceLocation KWLoc;
 2306   SourceLocation getKWLoc() const { return this->getLocalData()->KWLoc; }
 2307   void setKWLoc(SourceLocation Loc) { this->getLocalData()->KWLoc = Loc; }
 2309   void initializeLocal(ASTContext &Context, SourceLocation Loc) {
tools/clang/include/clang/ASTMatchers/ASTMatchers.h
  260   auto ExpansionLoc = SourceManager.getExpansionLoc(Node.getBeginLoc());
  286   auto ExpansionLoc = SourceManager.getExpansionLoc(Node.getBeginLoc());
tools/clang/include/clang/Analysis/Analyses/Consumed.h
   70     virtual void warnLoopStateMismatch(SourceLocation Loc,
   82     virtual void warnParamReturnTypestateMismatch(SourceLocation Loc,
   88     virtual void warnParamTypestateMismatch(SourceLocation LOC,
   99     virtual void warnReturnTypestateForUnconsumableType(SourceLocation Loc,
  111     virtual void warnReturnTypestateMismatch(SourceLocation Loc,
  124                                              SourceLocation Loc) {}
  139                                        SourceLocation Loc) {}
  161     void checkParamsForReturnTypestate(SourceLocation BlameLoc,
tools/clang/include/clang/Analysis/Analyses/ReachableCode.h
   52                                  SourceLocation L,
tools/clang/include/clang/Analysis/Analyses/ThreadSafety.h
  103   virtual void handleInvalidLockExp(StringRef Kind, SourceLocation Loc) {}
  112                                      SourceLocation Loc) {}
  126                                          SourceLocation LocLocked,
  127                                          SourceLocation LocUnlock) {}
  136                                 SourceLocation LocLocked,
  137                                 SourceLocation LocDoubleLock) {}
  153                                          SourceLocation LocLocked,
  154                                          SourceLocation LocEndOfScope,
  166                                         SourceLocation Loc1,
  167                                         SourceLocation Loc2) {}
  177                                  SourceLocation Loc) {}
  190                                   LockKind LK, SourceLocation Loc,
  201                                      SourceLocation Loc) {}
  211                                      Name LockName, SourceLocation Loc) {}
  215                                         Name L2Name, SourceLocation Loc) {}
  218   virtual void handleBeforeAfterCycle(Name L1Name, SourceLocation Loc) {}
tools/clang/include/clang/Analysis/CloneDetection.h
  124   SourceLocation getBeginLoc() const;
  129   SourceLocation getEndLoc() const;
tools/clang/include/clang/Analysis/PathDiagnostic.h
  167   PathDiagnosticLocation(SourceLocation L, const SourceManager &sm, Kind kind)
  171       SourceLocation L = SourceLocation(),
  203   PathDiagnosticLocation(SourceLocation loc, const SourceManager &sm)
  285   static SourceLocation
  425   void addRange(SourceLocation B, SourceLocation E) {
  425   void addRange(SourceLocation B, SourceLocation E) {
tools/clang/include/clang/Analysis/ProgramPoint.h
  561   ImplicitCallPoint(const Decl *D, SourceLocation Loc, Kind K,
  566   SourceLocation getLocation() const {
  567     return SourceLocation::getFromPtrEncoding(getData1());
  585   PreImplicitCall(const Decl *D, SourceLocation Loc, const LocationContext *L,
  602   PostImplicitCall(const Decl *D, SourceLocation Loc, const LocationContext *L,
tools/clang/include/clang/Basic/AttributeCommonInfo.h
   65   const SourceLocation ScopeLoc;
   80   AttributeCommonInfo(SourceLocation AttrLoc)
   86                       SourceLocation ScopeLoc, Syntax SyntaxUsed)
   94                       SourceLocation ScopeLoc, Kind AttrKind, Syntax SyntaxUsed)
  101                       SourceLocation ScopeLoc, Kind AttrKind, Syntax SyntaxUsed,
  129   SourceLocation getLoc() const { return AttrRange.getBegin(); }
  135   SourceLocation getScopeLoc() const { return ScopeLoc; }
tools/clang/include/clang/Basic/Diagnostic.h
   92   static FixItHint CreateInsertion(SourceLocation InsertionLoc,
  105   static FixItHint CreateInsertionFromRange(SourceLocation InsertionLoc,
  315     void append(SourceManager &SrcMgr, SourceLocation Loc, DiagState *State);
  318     DiagState *lookup(SourceManager &SrcMgr, SourceLocation Loc) const;
  338     SourceLocation getCurDiagStateLoc() const { return CurDiagStateLoc; }
  389     SourceLocation CurDiagStateLoc;
  405   void PushDiagStatePoint(DiagState *State, SourceLocation L);
  409   DiagState *GetDiagStateForLoc(SourceLocation Loc) const {
  540   void pushMappings(SourceLocation Loc);
  547   bool popMappings(SourceLocation Loc);
  708   void setSeverity(diag::kind Diag, diag::Severity Map, SourceLocation Loc);
  723                            SourceLocation Loc = SourceLocation());
  745                          SourceLocation Loc = SourceLocation());
  819   bool isIgnored(unsigned DiagID, SourceLocation Loc) const {
  834   Level getDiagnosticLevel(unsigned DiagID, SourceLocation Loc) const {
  846   inline DiagnosticBuilder Report(SourceLocation Loc, unsigned DiagID);
  903   SourceLocation CurDiagLoc;
  950   DiagnosticMapping makeUserMapping(diag::Severity Map, SourceLocation L) {
  991   SourceLocation getCurrentDiagLoc() const { return CurDiagLoc; }
 1290 inline DiagnosticBuilder DiagnosticsEngine::Report(SourceLocation Loc,
 1328   const SourceLocation &getLocation() const { return DiagObj->CurDiagLoc; }
tools/clang/include/clang/Basic/DiagnosticError.h
   31   static llvm::Error create(SourceLocation Loc, PartialDiagnostic Diag) {
tools/clang/include/clang/Basic/DiagnosticIDs.h
  315   getDiagnosticLevel(unsigned DiagID, SourceLocation Loc,
  319   getDiagnosticSeverity(unsigned DiagID, SourceLocation Loc,
tools/clang/include/clang/Basic/IdentifierTable.h
   44 using IdentifierLocPair = std::pair<IdentifierInfo *, SourceLocation>;
tools/clang/include/clang/Basic/JsonSupport.h
   81 inline void printSourceLocationAsJson(raw_ostream &Out, SourceLocation Loc,
tools/clang/include/clang/Basic/Module.h
   51 using ModuleId = SmallVector<std::pair<std::string, SourceLocation>, 2>;
   70   SourceLocation DefinitionLoc;
  180     SourceLocation FileNameLoc;
  284   SourceLocation InferredSubmoduleLoc;
  303     SourceLocation ExportLoc;
  378   Module(StringRef Name, SourceLocation DefinitionLoc, Module *Parent,
  625   SourceLocation getImportLoc(const Module *M) const {
  643   void setVisible(Module *M, SourceLocation Loc,
  651   std::vector<SourceLocation> ImportLocs;
tools/clang/include/clang/Basic/PartialDiagnostic.h
  419 using PartialDiagnosticAt = std::pair<SourceLocation, PartialDiagnostic>;
tools/clang/include/clang/Basic/PlistSupport.h
   39                    const SourceManager &SM, SourceLocation L) {
   51                        SourceLocation L) {
  108                          SourceLocation L, const FIDMap &FM, unsigned indent) {
tools/clang/include/clang/Basic/PrettyStackTrace.h
   28     SourceLocation Loc;
   31     PrettyStackTraceLoc(SourceManager &sm, SourceLocation L, const char *Msg)
tools/clang/include/clang/Basic/SanitizerBlacklist.h
   40   bool isBlacklistedLocation(SanitizerMask Mask, SourceLocation Loc,
tools/clang/include/clang/Basic/SourceLocation.h
  115   static SourceLocation getFileLoc(unsigned ID) {
  117     SourceLocation L;
  122   static SourceLocation getMacroLoc(unsigned ID) {
  124     SourceLocation L;
  132   SourceLocation getLocWithOffset(int Offset) const {
  134     SourceLocation L;
  150   static SourceLocation getFromRawEncoding(unsigned Encoding) {
  151     SourceLocation X;
  169   static SourceLocation getFromPtrEncoding(const void *Encoding) {
  173   static bool isPairOfFileLocations(SourceLocation Start, SourceLocation End) {
  173   static bool isPairOfFileLocations(SourceLocation Start, SourceLocation End) {
  183 inline bool operator==(const SourceLocation &LHS, const SourceLocation &RHS) {
  183 inline bool operator==(const SourceLocation &LHS, const SourceLocation &RHS) {
  187 inline bool operator!=(const SourceLocation &LHS, const SourceLocation &RHS) {
  187 inline bool operator!=(const SourceLocation &LHS, const SourceLocation &RHS) {
  191 inline bool operator<(const SourceLocation &LHS, const SourceLocation &RHS) {
  191 inline bool operator<(const SourceLocation &LHS, const SourceLocation &RHS) {
  197   SourceLocation B;
  198   SourceLocation E;
  202   SourceRange(SourceLocation loc) : B(loc), E(loc) {}
  203   SourceRange(SourceLocation begin, SourceLocation end) : B(begin), E(end) {}
  203   SourceRange(SourceLocation begin, SourceLocation end) : B(begin), E(end) {}
  205   SourceLocation getBegin() const { return B; }
  206   SourceLocation getEnd() const { return E; }
  208   void setBegin(SourceLocation b) { B = b; }
  209   void setEnd(SourceLocation e) { E = e; }
  250   static CharSourceRange getTokenRange(SourceLocation B, SourceLocation E) {
  250   static CharSourceRange getTokenRange(SourceLocation B, SourceLocation E) {
  254   static CharSourceRange getCharRange(SourceLocation B, SourceLocation E) {
  254   static CharSourceRange getCharRange(SourceLocation B, SourceLocation E) {
  264   SourceLocation getBegin() const { return Range.getBegin(); }
  265   SourceLocation getEnd() const { return Range.getEnd(); }
  268   void setBegin(SourceLocation b) { Range.setBegin(b); }
  269   void setEnd(SourceLocation e) { Range.setEnd(e); }
  287   SourceLocation IncludeLoc;
  292               SourceLocation IL)
  334   SourceLocation getIncludeLoc() const {
  345 class FullSourceLoc : public SourceLocation {
  352   explicit FullSourceLoc(SourceLocation Loc, const SourceManager &SM)
  406   bool isBeforeInTranslationUnitThan(SourceLocation Loc) const;
  471     static void *getAsVoidPointer(clang::SourceLocation L) {
  475     static clang::SourceLocation getFromVoidPointer(void *P) {
  476       return clang::SourceLocation::getFromRawEncoding((unsigned)(uintptr_t)P);
tools/clang/include/clang/Basic/SourceManager.h
  189                                         SourceLocation Loc = SourceLocation(),
  278     static FileInfo get(SourceLocation IL, const ContentCache *Con,
  290     SourceLocation getIncludeLoc() const {
  291       return SourceLocation::getFromRawEncoding(IncludeLoc);
  338     SourceLocation getSpellingLoc() const {
  339       SourceLocation SpellLoc = SourceLocation::getFromRawEncoding(SpellingLoc);
  339       SourceLocation SpellLoc = SourceLocation::getFromRawEncoding(SpellingLoc);
  343     SourceLocation getExpansionLocStart() const {
  344       return SourceLocation::getFromRawEncoding(ExpansionLocStart);
  347     SourceLocation getExpansionLocEnd() const {
  348       SourceLocation EndLoc =
  349         SourceLocation::getFromRawEncoding(ExpansionLocEnd);
  366         SourceLocation::getFromRawEncoding(ExpansionLocEnd).isInvalid();
  371         SourceLocation::getFromRawEncoding(ExpansionLocEnd).isValid();
  385     static ExpansionInfo create(SourceLocation SpellingLoc,
  386                                 SourceLocation Start, SourceLocation End,
  386                                 SourceLocation Start, SourceLocation End,
  415     static ExpansionInfo createForMacroArg(SourceLocation SpellingLoc,
  416                                            SourceLocation ExpansionLoc) {
  428     static ExpansionInfo createForTokenSplit(SourceLocation SpellingLoc,
  429                                              SourceLocation Start,
  430                                              SourceLocation End) {
  501   virtual std::pair<SourceLocation, StringRef> getModuleImportLoc(int ID) = 0;
  744   using MacroArgsMap = std::map<unsigned, SourceLocation>;
  831   FileID createFileID(const FileEntry *SourceFile, SourceLocation IncludePos,
  841   FileID createFileID(FileEntryRef SourceFile, SourceLocation IncludePos,
  858                       SourceLocation IncludeLoc = SourceLocation()) {
  874                       SourceLocation IncludeLoc = SourceLocation()) {
  893   SourceLocation createMacroArgExpansionLoc(SourceLocation Loc,
  893   SourceLocation createMacroArgExpansionLoc(SourceLocation Loc,
  894                                             SourceLocation ExpansionLoc,
  900   SourceLocation createExpansionLoc(SourceLocation Loc,
  900   SourceLocation createExpansionLoc(SourceLocation Loc,
  901                                     SourceLocation ExpansionLocStart,
  902                                     SourceLocation ExpansionLocEnd,
  910   SourceLocation createTokenSplitLoc(SourceLocation SpellingLoc,
  910   SourceLocation createTokenSplitLoc(SourceLocation SpellingLoc,
  911                                      SourceLocation TokenStart,
  912                                      SourceLocation TokenEnd);
  983   const llvm::MemoryBuffer *getBuffer(FileID FID, SourceLocation Loc,
 1089   FileID getFileID(SourceLocation SpellingLoc) const {
 1100   StringRef getFilename(SourceLocation SpellingLoc) const {
 1108   SourceLocation getLocForStartOfFile(FileID FID) const {
 1115     return SourceLocation::getFileLoc(FileOffset);
 1120   SourceLocation getLocForEndOfFile(FileID FID) const {
 1127     return SourceLocation::getFileLoc(FileOffset + getFileIDSize(FID));
 1132   SourceLocation getIncludeLoc(FileID FID) const {
 1144   std::pair<SourceLocation, StringRef>
 1145   getModuleImportLoc(SourceLocation Loc) const {
 1158   SourceLocation getExpansionLoc(SourceLocation Loc) const {
 1158   SourceLocation getExpansionLoc(SourceLocation Loc) const {
 1168   SourceLocation getFileLoc(SourceLocation Loc) const {
 1168   SourceLocation getFileLoc(SourceLocation Loc) const {
 1177   CharSourceRange getImmediateExpansionRange(SourceLocation Loc) const;
 1181   CharSourceRange getExpansionRange(SourceLocation Loc) const;
 1186     SourceLocation Begin = getExpansionRange(Range.getBegin()).getBegin();
 1206   SourceLocation getSpellingLoc(SourceLocation Loc) const {
 1206   SourceLocation getSpellingLoc(SourceLocation Loc) const {
 1219   SourceLocation getImmediateSpellingLoc(SourceLocation Loc) const;
 1219   SourceLocation getImmediateSpellingLoc(SourceLocation Loc) const;
 1222   SourceLocation getComposedLoc(FileID FID, unsigned Offset) const {
 1229     return Entry.isFile() ? SourceLocation::getFileLoc(GlobalOffset)
 1230                           : SourceLocation::getMacroLoc(GlobalOffset);
 1237   std::pair<FileID, unsigned> getDecomposedLoc(SourceLocation Loc) const {
 1251   getDecomposedExpansionLoc(SourceLocation Loc) const {
 1270   getDecomposedSpellingLoc(SourceLocation Loc) const {
 1291   unsigned getFileOffset(SourceLocation SpellingLoc) const {
 1304   bool isMacroArgExpansion(SourceLocation Loc,
 1305                            SourceLocation *StartLoc = nullptr) const;
 1312   bool isMacroBodyExpansion(SourceLocation Loc) const;
 1319   bool isAtStartOfImmediateMacroExpansion(SourceLocation Loc,
 1320                                     SourceLocation *MacroBegin = nullptr) const;
 1328   isAtEndOfImmediateMacroExpansion(SourceLocation Loc,
 1329                                    SourceLocation *MacroEnd = nullptr) const;
 1336   bool isInSLocAddrSpace(SourceLocation Loc,
 1337                          SourceLocation Start, unsigned Length,
 1361   bool isInSameSLocAddrSpace(SourceLocation LHS, SourceLocation RHS,
 1361   bool isInSameSLocAddrSpace(SourceLocation LHS, SourceLocation RHS,
 1384   const char *getCharacterData(SourceLocation SL,
 1395   unsigned getSpellingColumnNumber(SourceLocation Loc,
 1397   unsigned getExpansionColumnNumber(SourceLocation Loc,
 1399   unsigned getPresumedColumnNumber(SourceLocation Loc,
 1409   unsigned getSpellingLineNumber(SourceLocation Loc, bool *Invalid = nullptr) const;
 1410   unsigned getExpansionLineNumber(SourceLocation Loc, bool *Invalid = nullptr) const;
 1411   unsigned getPresumedLineNumber(SourceLocation Loc, bool *Invalid = nullptr) const;
 1418   StringRef getBufferName(SourceLocation Loc, bool *Invalid = nullptr) const;
 1430   SrcMgr::CharacteristicKind getFileCharacteristic(SourceLocation Loc) const;
 1445   PresumedLoc getPresumedLoc(SourceLocation Loc,
 1455   bool isInMainFile(SourceLocation Loc) const;
 1461   bool isWrittenInSameFile(SourceLocation Loc1, SourceLocation Loc2) const {
 1461   bool isWrittenInSameFile(SourceLocation Loc1, SourceLocation Loc2) const {
 1469   bool isWrittenInMainFile(SourceLocation Loc) const {
 1474   bool isWrittenInBuiltinFile(SourceLocation Loc) const {
 1480   bool isWrittenInCommandLineFile(SourceLocation Loc) const {
 1486   bool isWrittenInScratchSpace(SourceLocation Loc) const {
 1492   bool isInSystemHeader(SourceLocation Loc) const {
 1497   bool isInExternCSystemHeader(SourceLocation Loc) const {
 1502   bool isInSystemMacro(SourceLocation loc) const {
 1525   bool isInFileID(SourceLocation Loc, FileID FID,
 1548   void AddLineNote(SourceLocation Loc, unsigned LineNo, int FilenameID,
 1592   SourceLocation translateFileLineCol(const FileEntry *SourceFile,
 1603   SourceLocation translateLineCol(FileID FID,
 1615   SourceLocation getMacroArgExpandedLocation(SourceLocation Loc) const;
 1615   SourceLocation getMacroArgExpandedLocation(SourceLocation Loc) const;
 1620   bool isBeforeInTranslationUnit(SourceLocation LHS, SourceLocation RHS) const;
 1620   bool isBeforeInTranslationUnit(SourceLocation LHS, SourceLocation RHS) const;
 1635   bool isBeforeInSLocAddrSpace(SourceLocation LHS, SourceLocation RHS) const {
 1635   bool isBeforeInSLocAddrSpace(SourceLocation LHS, SourceLocation RHS) const {
 1643   bool isBeforeInSLocAddrSpace(SourceLocation LHS, unsigned RHS) const {
 1654   bool isPointWithin(SourceLocation Location, SourceLocation Start,
 1654   bool isPointWithin(SourceLocation Location, SourceLocation Start,
 1655                      SourceLocation End) const {
 1725   bool isLoadedSourceLocation(SourceLocation Loc) const {
 1730   bool isLocalSourceLocation(SourceLocation Loc) const {
 1747   SourceLocation getImmediateMacroCallerLoc(SourceLocation Loc) const {
 1747   SourceLocation getImmediateMacroCallerLoc(SourceLocation Loc) const {
 1762   SourceLocation getTopMacroCallerLoc(SourceLocation Loc) const;
 1762   SourceLocation getTopMacroCallerLoc(SourceLocation Loc) const;
 1789   SourceLocation createExpansionLocImpl(const SrcMgr::ExpansionInfo &Expansion,
 1828                       SourceLocation IncludePos,
 1844   SourceLocation getExpansionLocSlowCase(SourceLocation Loc) const;
 1844   SourceLocation getExpansionLocSlowCase(SourceLocation Loc) const;
 1845   SourceLocation getSpellingLocSlowCase(SourceLocation Loc) const;
 1845   SourceLocation getSpellingLocSlowCase(SourceLocation Loc) const;
 1846   SourceLocation getFileLocSlowCase(SourceLocation Loc) const;
 1846   SourceLocation getFileLocSlowCase(SourceLocation Loc) const;
 1856                                          SourceLocation SpellLoc,
 1857                                          SourceLocation ExpansionLoc,
 1873   bool operator()(SourceLocation LHS, SourceLocation RHS) const {
 1873   bool operator()(SourceLocation LHS, SourceLocation RHS) const {
tools/clang/include/clang/Basic/XRayLists.h
   49   ImbueAttribute shouldImbueLocation(SourceLocation Loc,
tools/clang/include/clang/CrossTU/CrossTranslationUnit.h
  176   llvm::Optional<std::pair<SourceLocation /*FromLoc*/, ASTUnit *>>
  177   getImportedFromSourceLocation(const clang::SourceLocation &ToLoc) const;
tools/clang/include/clang/Edit/Commit.h
   40     SourceLocation OrigLoc;
   46     SourceLocation getFileLocation(SourceManager &SM) const;
   70   bool insert(SourceLocation loc, StringRef text, bool afterToken = false,
   73   bool insertAfterToken(SourceLocation loc, StringRef text,
   78   bool insertBefore(SourceLocation loc, StringRef text) {
   83   bool insertFromRange(SourceLocation loc, CharSourceRange range,
   92   bool replaceText(SourceLocation loc, StringRef text,
   95   bool insertFromRange(SourceLocation loc, SourceRange TokenRange,
  125   void addInsert(SourceLocation OrigLoc,
  127   void addInsertFromRange(SourceLocation OrigLoc, FileOffset Offs,
  130   void addRemove(SourceLocation OrigLoc, FileOffset Offs, unsigned Len);
  132   bool canInsert(SourceLocation loc, FileOffset &Offset);
  133   bool canInsertAfterToken(SourceLocation loc, FileOffset &Offset,
  134                            SourceLocation &AfterLoc);
  135   bool canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs);
  137   bool canReplaceText(SourceLocation loc, StringRef text,
  144   bool isAtStartOfMacroExpansion(SourceLocation loc,
  145                                  SourceLocation *MacroBegin = nullptr) const;
  146   bool isAtEndOfMacroExpansion(SourceLocation loc,
  147                                SourceLocation *MacroEnd = nullptr) const;
tools/clang/include/clang/Edit/EditedSource.h
   53     SourceLocation ImmediateExpansionLoc;
   56     SourceLocation UseLoc;
   66   SmallVector<std::pair<SourceLocation, MacroArgUse>, 2>
   84   bool canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs);
   95   bool commitInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text,
   97   bool commitInsertFromRange(SourceLocation OrigLoc, FileOffset Offs,
  100   void commitRemove(SourceLocation OrigLoc, FileOffset BeginOffs, unsigned Len);
  105   void deconstructMacroArgLoc(SourceLocation Loc,
  106                               SourceLocation &ExpansionLoc,
tools/clang/include/clang/Edit/EditsReceiver.h
   23   virtual void insert(SourceLocation loc, StringRef text) = 0;
tools/clang/include/clang/Frontend/ASTUnit.h
  222   llvm::StringMap<SourceLocation> PreambleSrcLocCache;
  550   SourceLocation getLocation(const FileEntry *File,
  554   SourceLocation getLocation(const FileEntry *File, unsigned Offset) const;
  559   SourceLocation mapLocationFromPreamble(SourceLocation Loc) const;
  559   SourceLocation mapLocationFromPreamble(SourceLocation Loc) const;
  564   SourceLocation mapLocationToPreamble(SourceLocation Loc) const;
  564   SourceLocation mapLocationToPreamble(SourceLocation Loc) const;
  566   bool isInPreambleFileID(SourceLocation Loc) const;
  567   bool isInMainFileID(SourceLocation Loc) const;
  568   SourceLocation getStartOfMainFileID() const;
  569   SourceLocation getEndOfPreambleFileID() const;
tools/clang/include/clang/Frontend/CompilerInstance.h
  142   SourceLocation LastModuleImportLoc;
  793   ModuleLoadResult loadModule(SourceLocation ImportLoc, ModuleIdPath Path,
  797   void loadModuleFromSource(SourceLocation ImportLoc, StringRef ModuleName,
  801                          SourceLocation ImportLoc) override;
  807   GlobalModuleIndex *loadGlobalModuleIndex(SourceLocation TriggerLoc) override;
  809   bool lookupMissingImports(StringRef Name, SourceLocation TriggerLoc) override;
tools/clang/include/clang/Frontend/DiagnosticRenderer.h
   57   SourceLocation LastLoc;
   63   SourceLocation LastIncludeLoc;
tools/clang/include/clang/Frontend/LogDiagnosticPrinter.h
   56   SourceLocation LastWarningLoc;
tools/clang/include/clang/Frontend/TextDiagnosticBuffer.h
   27   using DiagList = std::vector<std::pair<SourceLocation, std::string>>;
tools/clang/include/clang/Frontend/VerifyDiagnosticConsumer.h
  193                                              SourceLocation DirectiveLoc,
  194                                              SourceLocation DiagnosticLoc,
  202     SourceLocation DirectiveLoc;
  203     SourceLocation DiagnosticLoc;
  220     Directive(SourceLocation DirectiveLoc, SourceLocation DiagnosticLoc,
  220     Directive(SourceLocation DirectiveLoc, SourceLocation DiagnosticLoc,
tools/clang/include/clang/Index/IndexDataConsumer.h
   44                                    SourceLocation Loc, ASTNodeInfo ASTNode) {
   51                                     SourceLocation Loc) {
   62                                      SourceLocation Loc) {
tools/clang/include/clang/Index/USRGeneration.h
   72 bool generateUSRForMacro(StringRef MacroName, SourceLocation Loc,
tools/clang/include/clang/Lex/DependencyDirectivesSourceMinimizer.h
  106     SourceLocation InputSourceLoc = SourceLocation());
tools/clang/include/clang/Lex/DirectoryLookup.h
  181   LookupFile(StringRef &Filename, HeaderSearch &HS, SourceLocation IncludeLoc,
tools/clang/include/clang/Lex/HeaderSearch.h
  393       StringRef Filename, SourceLocation IncludeLoc, bool isAngled,
  645   getFileAndSuggestModule(StringRef FileName, SourceLocation IncludeLoc,
tools/clang/include/clang/Lex/Lexer.h
   91   SourceLocation FileLoc;
  146   Lexer(SourceLocation FileLoc, const LangOptions &LangOpts,
  161   static Lexer *Create_PragmaLexer(SourceLocation SpellingLoc,
  162                                    SourceLocation ExpansionLocStart,
  163                                    SourceLocation ExpansionLocEnd,
  174   SourceLocation getFileLoc() const { return FileLoc; }
  257   SourceLocation getSourceLocation(const char *Loc, unsigned TokLen = 1) const;
  261   SourceLocation getSourceLocation() override {
  325   static StringRef getSpelling(SourceLocation loc,
  335   static unsigned MeasureTokenLength(SourceLocation Loc,
  341   static bool getRawToken(SourceLocation Loc, Token &Result,
  349   static SourceLocation GetBeginningOfToken(SourceLocation Loc,
  349   static SourceLocation GetBeginningOfToken(SourceLocation Loc,
  355   static unsigned getTokenPrefixLength(SourceLocation TokStart,
  363   static SourceLocation AdvanceToTokenCharacter(SourceLocation TokStart,
  363   static SourceLocation AdvanceToTokenCharacter(SourceLocation TokStart,
  386   static SourceLocation getLocForEndOfToken(SourceLocation Loc, unsigned Offset,
  386   static SourceLocation getLocForEndOfToken(SourceLocation Loc, unsigned Offset,
  397     SourceLocation End = getLocForEndOfToken(Range.getEnd(), 0, SM, LangOpts);
  415   static bool isAtStartOfMacroExpansion(SourceLocation loc,
  418                                         SourceLocation *MacroBegin = nullptr);
  425   static bool isAtEndOfMacroExpansion(SourceLocation loc,
  428                                       SourceLocation *MacroEnd = nullptr);
  473   static StringRef getImmediateMacroName(SourceLocation Loc,
  495       SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts);
  519   static Optional<Token> findNextToken(SourceLocation Loc,
  528   static SourceLocation findLocationAfterToken(SourceLocation loc,
  528   static SourceLocation findLocationAfterToken(SourceLocation loc,
  558   static StringRef getIndentationForLine(SourceLocation Loc,
tools/clang/include/clang/Lex/LiteralSupport.h
   58                        SourceLocation TokLoc,
  120   void ParseNumberStartingWithZero(SourceLocation TokLoc);
  121   void ParseDecimalOrOctalCommon(SourceLocation TokLoc);
  134   void checkSeparator(SourceLocation TokLoc, const char *Pos,
  184                     SourceLocation Loc, Preprocessor &PP,
  279   void DiagnoseLexingError(SourceLocation Loc);
tools/clang/include/clang/Lex/MacroArgs.h
  126                                  SourceLocation ExpansionLocStart,
  127                                  SourceLocation ExpansionLocEnd);
tools/clang/include/clang/Lex/MacroInfo.h
   44   SourceLocation Location;
   47   SourceLocation EndLocation;
  118   MacroInfo(SourceLocation DefLoc);
  123   SourceLocation getDefinitionLoc() const { return Location; }
  126   void setDefinitionEndLoc(SourceLocation EndLoc) { EndLocation = EndLoc; }
  129   SourceLocation getDefinitionEndLoc() const { return EndLocation; }
  302   SourceLocation Loc;
  316   MacroDirective(Kind K, SourceLocation Loc)
  322   SourceLocation getLocation() const { return Loc; }
  340     SourceLocation UndefLoc;
  345     DefInfo(DefMacroDirective *DefDirective, SourceLocation UndefLoc,
  352     inline SourceLocation getLocation() const;
  359     SourceLocation getUndefLocation() const { return UndefLoc; }
  397   const DefInfo findDirectiveAtLoc(SourceLocation L,
  410   DefMacroDirective(MacroInfo *MI, SourceLocation Loc)
  431   explicit UndefMacroDirective(SourceLocation UndefLoc)
  446   explicit VisibilityMacroDirective(SourceLocation Loc, bool Public)
  462 inline SourceLocation MacroDirective::DefInfo::getLocation() const {
tools/clang/include/clang/Lex/ModuleLoader.h
   32 using ModuleIdPath = ArrayRef<std::pair<IdentifierInfo *, SourceLocation>>;
  112   virtual ModuleLoadResult loadModule(SourceLocation ImportLoc,
  124   virtual void loadModuleFromSource(SourceLocation Loc, StringRef ModuleName,
  130                                  SourceLocation ImportLoc) = 0;
  143                                                 SourceLocation TriggerLoc) = 0;
  150                                     SourceLocation TriggerLoc) = 0;
  158   ModuleLoadResult loadModule(SourceLocation ImportLoc, ModuleIdPath Path,
  164   void loadModuleFromSource(SourceLocation ImportLoc, StringRef ModuleName,
  168                          SourceLocation ImportLoc) override {}
  170   GlobalModuleIndex *loadGlobalModuleIndex(SourceLocation TriggerLoc) override {
  175                             SourceLocation TriggerLoc) override {
tools/clang/include/clang/Lex/ModuleMap.h
   58   virtual void moduleMapFileRead(SourceLocation FileStart,
  464                                SourceLocation FilenameLoc, StringRef Filename,
  528   Module *createGlobalModuleFragmentForModuleUnit(SourceLocation Loc);
  532                                                       SourceLocation Loc);
  541   Module *createModuleForInterfaceUnit(SourceLocation Loc, StringRef Name,
  678                           SourceLocation ExternModuleLoc = SourceLocation());
tools/clang/include/clang/Lex/MultipleIncludeOpt.h
   55   SourceLocation MacroLoc;
   56   SourceLocation DefinedLoc;
   66   SourceLocation GetMacroLocation() const {
   70   SourceLocation GetDefinedLocation() const {
   78   void SetDefinedMacro(IdentifierInfo *M, SourceLocation Loc) {
  122   void EnterTopLevelIfndef(const IdentifierInfo *M, SourceLocation Loc) {
tools/clang/include/clang/Lex/PPCallbacks.h
   47   virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason,
  122   virtual void InclusionDirective(SourceLocation HashLoc,
  142   virtual void EnteredSubmodule(Module *M, SourceLocation ImportLoc,
  153   virtual void LeftSubmodule(Module *M, SourceLocation ImportLoc,
  166   virtual void moduleImport(SourceLocation ImportLoc,
  181   virtual void Ident(SourceLocation Loc, StringRef str) {
  185   virtual void PragmaDirective(SourceLocation Loc,
  190   virtual void PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind,
  196   virtual void PragmaDetectMismatch(SourceLocation Loc, StringRef Name,
  203   virtual void PragmaDebug(SourceLocation Loc, StringRef DebugType) {
  223   virtual void PragmaMessage(SourceLocation Loc, StringRef Namespace,
  229   virtual void PragmaDiagnosticPush(SourceLocation Loc,
  235   virtual void PragmaDiagnosticPop(SourceLocation Loc,
  240   virtual void PragmaDiagnostic(SourceLocation Loc, StringRef Namespace,
  245   virtual void PragmaOpenCLExtension(SourceLocation NameLoc,
  247                                      SourceLocation StateLoc, unsigned State) {
  251   virtual void PragmaWarning(SourceLocation Loc, StringRef WarningSpec,
  256   virtual void PragmaWarningPush(SourceLocation Loc, int Level) {
  260   virtual void PragmaWarningPop(SourceLocation Loc) {
  265   virtual void PragmaExecCharsetPush(SourceLocation Loc, StringRef Str) {}
  269   virtual void PragmaExecCharsetPop(SourceLocation Loc) {}
  273   virtual void PragmaAssumeNonNullBegin(SourceLocation Loc) {}
  277   virtual void PragmaAssumeNonNullEnd(SourceLocation Loc) {}
  309   virtual void HasInclude(SourceLocation Loc, StringRef FileName, bool IsAngled,
  319   virtual void SourceRangeSkipped(SourceRange Range, SourceLocation EndifLoc) {
  332   virtual void If(SourceLocation Loc, SourceRange ConditionRange,
  342   virtual void Elif(SourceLocation Loc, SourceRange ConditionRange,
  343                     ConditionValueKind ConditionValue, SourceLocation IfLoc) {
  350   virtual void Ifdef(SourceLocation Loc, const Token &MacroNameTok,
  358   virtual void Ifndef(SourceLocation Loc, const Token &MacroNameTok,
  365   virtual void Else(SourceLocation Loc, SourceLocation IfLoc) {
  365   virtual void Else(SourceLocation Loc, SourceLocation IfLoc) {
  371   virtual void Endif(SourceLocation Loc, SourceLocation IfLoc) {
  371   virtual void Endif(SourceLocation Loc, SourceLocation IfLoc) {
  385   void FileChanged(SourceLocation Loc, FileChangeReason Reason,
  404   void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
  418   void EnteredSubmodule(Module *M, SourceLocation ImportLoc,
  424   void LeftSubmodule(Module *M, SourceLocation ImportLoc,
  430   void moduleImport(SourceLocation ImportLoc, ModuleIdPath Path,
  441   void Ident(SourceLocation Loc, StringRef str) override {
  446   void PragmaDirective(SourceLocation Loc,
  452   void PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind,
  458   void PragmaDetectMismatch(SourceLocation Loc, StringRef Name,
  464   void PragmaDebug(SourceLocation Loc, StringRef DebugType) override {
  469   void PragmaMessage(SourceLocation Loc, StringRef Namespace,
  475   void PragmaDiagnosticPush(SourceLocation Loc, StringRef Namespace) override {
  480   void PragmaDiagnosticPop(SourceLocation Loc, StringRef Namespace) override {
  485   void PragmaDiagnostic(SourceLocation Loc, StringRef Namespace,
  491   void HasInclude(SourceLocation Loc, StringRef FileName, bool IsAngled,
  498   void PragmaOpenCLExtension(SourceLocation NameLoc, const IdentifierInfo *Name,
  499                              SourceLocation StateLoc, unsigned State) override {
  504   void PragmaWarning(SourceLocation Loc, StringRef WarningSpec,
  510   void PragmaWarningPush(SourceLocation Loc, int Level) override {
  515   void PragmaWarningPop(SourceLocation Loc) override {
  520   void PragmaExecCharsetPush(SourceLocation Loc, StringRef Str) override {
  525   void PragmaExecCharsetPop(SourceLocation Loc) override {
  530   void PragmaAssumeNonNullBegin(SourceLocation Loc) override {
  535   void PragmaAssumeNonNullEnd(SourceLocation Loc) override {
  565   void SourceRangeSkipped(SourceRange Range, SourceLocation EndifLoc) override {
  571   void If(SourceLocation Loc, SourceRange ConditionRange,
  578   void Elif(SourceLocation Loc, SourceRange ConditionRange,
  579             ConditionValueKind ConditionValue, SourceLocation IfLoc) override {
  585   void Ifdef(SourceLocation Loc, const Token &MacroNameTok,
  592   void Ifndef(SourceLocation Loc, const Token &MacroNameTok,
  599   void Else(SourceLocation Loc, SourceLocation IfLoc) override {
  599   void Else(SourceLocation Loc, SourceLocation IfLoc) override {
  605   void Endif(SourceLocation Loc, SourceLocation IfLoc) override {
  605   void Endif(SourceLocation Loc, SourceLocation IfLoc) override {
tools/clang/include/clang/Lex/PPConditionalDirectiveRecord.h
   28   SmallVector<SourceLocation, 6> CondDirectiveStack;
   31     SourceLocation Loc;
   32     SourceLocation RegionLoc;
   35     CondDirectiveLoc(SourceLocation Loc, SourceLocation RegionLoc)
   35     CondDirectiveLoc(SourceLocation Loc, SourceLocation RegionLoc)
   38     SourceLocation getLoc() const { return Loc; }
   39     SourceLocation getRegionLoc() const { return RegionLoc; }
   49       bool operator()(const CondDirectiveLoc &LHS, SourceLocation RHS) {
   52       bool operator()(SourceLocation LHS, const CondDirectiveLoc &RHS) {
   79   bool areInDifferentConditionalDirectiveRegion(SourceLocation LHS,
   80                                                 SourceLocation RHS) const {
   85   SourceLocation findConditionalDirectiveRegionLoc(SourceLocation Loc) const;
   85   SourceLocation findConditionalDirectiveRegionLoc(SourceLocation Loc) const;
   88   void If(SourceLocation Loc, SourceRange ConditionRange,
   90   void Elif(SourceLocation Loc, SourceRange ConditionRange,
   91             ConditionValueKind ConditionValue, SourceLocation IfLoc) override;
   92   void Ifdef(SourceLocation Loc, const Token &MacroNameTok,
   94   void Ifndef(SourceLocation Loc, const Token &MacroNameTok,
   96   void Else(SourceLocation Loc, SourceLocation IfLoc) override;
   96   void Else(SourceLocation Loc, SourceLocation IfLoc) override;
   97   void Endif(SourceLocation Loc, SourceLocation IfLoc) override;
   97   void Endif(SourceLocation Loc, SourceLocation IfLoc) override;
tools/clang/include/clang/Lex/Pragma.h
   53     SourceLocation Loc;
tools/clang/include/clang/Lex/PreprocessingRecord.h
  161     SourceLocation getLocation() const { return getSourceRange().getBegin(); }
  376     unsigned findBeginLocalPreprocessedEntity(SourceLocation Loc) const;
  377     unsigned findEndLocalPreprocessedEntity(SourceLocation Loc) const;
  531     void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
  537     void Ifdef(SourceLocation Loc, const Token &MacroNameTok,
  539     void Ifndef(SourceLocation Loc, const Token &MacroNameTok,
  547                             SourceLocation EndifLoc) override;
tools/clang/include/clang/Lex/Preprocessor.h
  181   SourceLocation DATELoc, TIMELoc;
  274   SourceLocation CodeCompletionLoc;
  280   SourceLocation CodeCompletionFileLoc;
  284   SourceLocation ModuleImportLoc;
  287   SmallVector<std::pair<IdentifierInfo *, SourceLocation>, 2> ModuleImportPath;
  376   std::pair<IdentifierInfo *, SourceLocation> PragmaARCCFCodeAuditedInfo;
  380   SourceLocation PragmaAssumeNonNullLoc;
  418     SourceLocation HashTokenLoc;
  419     SourceLocation IfTokenLoc;
  422     SourceLocation ElseLoc;
  424     PreambleSkipInfo(SourceLocation HashTokenLoc, SourceLocation IfTokenLoc,
  424     PreambleSkipInfo(SourceLocation HashTokenLoc, SourceLocation IfTokenLoc,
  426                      SourceLocation ElseLoc)
  651     MacroDirective::DefInfo findDirectiveAtLoc(SourceLocation Loc,
  707     SourceLocation ImportLoc;
  718     BuildingSubmoduleInfo(Module *M, SourceLocation ImportLoc, bool IsPragma,
  767   using WarnUnusedMacroLocsTy = llvm::SmallPtrSet<SourceLocation, 32>;
 1049                                           SourceLocation Loc) {
 1098                                              SourceLocation Loc) {
 1148   StringRef getLastMacroWithSpelling(SourceLocation Loc,
 1225   void setCodeCompletionTokenRange(const SourceLocation Start,
 1226                                    const SourceLocation End) {
 1270                                            SourceLocation HashLoc);
 1284                        SourceLocation Loc);
 1292   void EnterMacro(Token &Tok, SourceLocation ILEnd, MacroInfo *Macro,
 1368   void makeModuleVisible(Module *M, SourceLocation Loc);
 1370   SourceLocation getModuleImportLoc(Module *M) const {
 1501   SourceLocation getLastCachedTokenLocation() const {
 1579   SourceLocation getCodeCompletionLoc() const { return CodeCompletionLoc; }
 1585   SourceLocation getCodeCompletionFileLoc() const {
 1605   std::pair<IdentifierInfo *, SourceLocation>
 1613                                      SourceLocation Loc) {
 1621   SourceLocation getPragmaAssumeNonNullLoc() const {
 1627   void setPragmaAssumeNonNullLoc(SourceLocation Loc) {
 1651   DiagnosticBuilder Diag(SourceLocation Loc, unsigned DiagID) const {
 1666   StringRef getSpelling(SourceLocation loc,
 1711   bool getRawToken(SourceLocation Loc, Token &Result,
 1742   StringRef getImmediateMacroName(SourceLocation Loc) {
 1752                     SourceLocation ExpansionLocStart = SourceLocation(),
 1753                     SourceLocation ExpansionLocEnd = SourceLocation());
 1758   SourceLocation SplitToken(SourceLocation TokLoc, unsigned Length);
 1758   SourceLocation SplitToken(SourceLocation TokLoc, unsigned Length);
 1775   SourceLocation getLocForEndOfToken(SourceLocation Loc, unsigned Offset = 0) {
 1775   SourceLocation getLocForEndOfToken(SourceLocation Loc, unsigned Offset = 0) {
 1784   bool isAtStartOfMacroExpansion(SourceLocation loc,
 1785                                  SourceLocation *MacroBegin = nullptr) const {
 1795   bool isAtEndOfMacroExpansion(SourceLocation loc,
 1796                                SourceLocation *MacroEnd = nullptr) const {
 1802   void DumpLocation(SourceLocation Loc) const;
 1808   SourceLocation AdvanceToTokenCharacter(SourceLocation TokStart,
 1808   SourceLocation AdvanceToTokenCharacter(SourceLocation TokStart,
 1921   SourceLocation CheckEndOfDirective(const char *DirType,
 1940   MacroInfo *AllocateMacroInfo(SourceLocation L);
 1951   bool GetIncludeFilenameSpelling(SourceLocation Loc,StringRef &Buffer);
 1958   LookupFile(SourceLocation FilenameLoc, StringRef Filename, bool isAngled,
 1982   void EnterSubmodule(Module *M, SourceLocation ImportLoc, bool ForPragma);
 2017                                                SourceLocation Loc);
 2018   UndefMacroDirective *AllocateUndefMacroDirective(SourceLocation UndefLoc);
 2019   VisibilityMacroDirective *AllocateVisibilityMacroDirective(SourceLocation Loc,
 2061   void SkipExcludedConditionalBlock(SourceLocation HashTokenLoc,
 2062                                     SourceLocation IfTokenLoc,
 2064                                     SourceLocation ElseLoc = SourceLocation());
 2115                                        SourceLocation &MacroEnd);
 2208       SourceLocation FilenameLoc, CharSourceRange FilenameRange,
 2216   void HandleIncludeDirective(SourceLocation HashLoc, Token &Tok,
 2220   HandleHeaderIncludeOrImport(SourceLocation HashLoc, Token &IncludeTok,
 2221                               Token &FilenameTok, SourceLocation EndLoc,
 2224   void HandleIncludeNextDirective(SourceLocation HashLoc, Token &Tok);
 2225   void HandleIncludeMacrosDirective(SourceLocation HashLoc, Token &Tok);
 2226   void HandleImportDirective(SourceLocation HashLoc, Token &Tok);
 2241   Module *getModuleForLocation(SourceLocation Loc);
 2254   const FileEntry *getModuleHeaderToIncludeForDiagnostics(SourceLocation IncLoc,
 2256                                                           SourceLocation MLoc);
 2329   getSkippedRangeForExcludedConditionalBlock(SourceLocation HashLoc);
tools/clang/include/clang/Lex/PreprocessorLexer.h
   84   virtual SourceLocation getSourceLocation() = 0;
   92   void pushConditionalLevel(SourceLocation DirectiveStart, bool WasSkipping,
tools/clang/include/clang/Lex/ScratchBuffer.h
   27   SourceLocation BufferStartLoc;
   36   SourceLocation getToken(const char *Buf, unsigned Len, const char *&DestPtr);
tools/clang/include/clang/Lex/Token.h
  126   SourceLocation getLocation() const {
  127     return SourceLocation::getFromRawEncoding(Loc);
  134   void setLocation(SourceLocation L) { Loc = L.getRawEncoding(); }
  140   SourceLocation getAnnotationEndLoc() const {
  142     return SourceLocation::getFromRawEncoding(UintData ? UintData : Loc);
  144   void setAnnotationEndLoc(SourceLocation L) {
  149   SourceLocation getLastLoc() const {
  153   SourceLocation getEndLoc() const {
  317   SourceLocation IfLoc;
tools/clang/include/clang/Lex/TokenLexer.h
   60   SourceLocation ExpandLocStart, ExpandLocEnd;
   64   SourceLocation MacroExpansionStart;
   71   SourceLocation MacroDefStart;
  108   TokenLexer(Token &Tok, SourceLocation ILEnd, MacroInfo *MI,
  131   void Init(Token &Tok, SourceLocation ELEnd, MacroInfo *MI,
  207                               SourceLocation VAOPTClosingParenLoc);
  218   void HandleMicrosoftCommentPaste(Token &Tok, SourceLocation OpLoc);
  223   SourceLocation getExpansionLocForMacroDefLoc(SourceLocation loc) const;
  223   SourceLocation getExpansionLocForMacroDefLoc(SourceLocation loc) const;
  230   void updateLocForMacroArgTokens(SourceLocation ArgIdSpellLoc,
tools/clang/include/clang/Lex/VariadicMacroSupport.h
   72     SmallVector<SourceLocation, 8> UnmatchedOpeningParens;
   90     void sawVAOptFollowedByOpeningParens(const SourceLocation LParenLoc) {
   96     SourceLocation getUnmatchedOpeningParenLoc() const {
  111     void sawOpeningParen(SourceLocation LParenLoc) {
  128     SourceLocation VAOptLoc;
  222     void sawVAOptFollowedByOpeningParens(const SourceLocation VAOptLoc,
  233     SourceLocation getVAOptLoc() const {
tools/clang/include/clang/Parse/Parser.h
   75   SourceLocation PrevTokLocation;
  301       SourceLocation LessLoc;
  323     void add(Parser &P, Expr *TemplateName, SourceLocation LessLoc,
  374   SourceLocation ExprStatementTokLoc;
  448   SourceLocation ConsumeToken() {
  466   bool TryConsumeToken(tok::TokenKind Expected, SourceLocation &Loc) {
  476   SourceLocation ConsumeAnyToken(bool ConsumeCodeCompletionTok = false) {
  494   SourceLocation getEndOfPreviousToken() {
  544   SourceLocation ConsumeAnnotationToken() {
  546     SourceLocation Loc = Tok.getLocation();
  554   SourceLocation ConsumeParen() {
  569   SourceLocation ConsumeBracket() {
  585   SourceLocation ConsumeBrace() {
  603   SourceLocation ConsumeStringToken() {
  616   SourceLocation ConsumeCodeCompletionToken() {
  628   SourceLocation handleUnexpectedCodeCompletionToken();
  684                              SourceLocation PragmaLocation);
  686                              SourceLocation PragmaLocation);
  688                              SourceLocation PragmaLocation);
  736       SourceLocation &AnyLoc, SourceLocation &LastMatchRuleEndLoc);
  736       SourceLocation &AnyLoc, SourceLocation &LastMatchRuleEndLoc);
  826   bool TryAltiVecToken(DeclSpec &DS, SourceLocation Loc,
  850   bool TryAltiVecTokenOutOfLine(DeclSpec &DS, SourceLocation Loc,
 1069   DiagnosticBuilder Diag(SourceLocation Loc, unsigned DiagID);
 1076   void SuggestParentheses(SourceLocation Loc, unsigned DK,
 1078   void CheckNestedObjCContexts(SourceLocation AtLoc);
 1177     SourceLocation AttrNameLoc;
 1181                                  SourceLocation Loc)
 1377     explicit ParsedTemplateInfo(SourceLocation ExternLoc,
 1378                                 SourceLocation TemplateLoc)
 1401     SourceLocation ExternLoc;
 1405     SourceLocation TemplateLoc;
 1434                                      SourceLocation PureSpecLoc);
 1504   ExprResult ParseSimpleAsm(SourceLocation *EndLoc = nullptr);
 1510   DeclGroupPtrTy ParseObjCAtClassDeclaration(SourceLocation atLoc);
 1511   Decl *ParseObjCAtInterfaceDeclaration(SourceLocation AtLoc,
 1516       ObjCTypeParamListScope &Scope, SourceLocation &lAngleLoc,
 1518       SourceLocation &rAngleLoc, bool mayBeProtocolList = true);
 1520   void HelperActionsForIvarDeclarations(Decl *interfaceDecl, SourceLocation atLoc,
 1526                                        SourceLocation atLoc);
 1528                                    SmallVectorImpl<SourceLocation> &PLocs,
 1531                                    SourceLocation &LAngleLoc,
 1532                                    SourceLocation &EndProtoLoc,
 1540          SourceLocation &typeArgsLAngleLoc,
 1542          SourceLocation &typeArgsRAngleLoc,
 1543          SourceLocation &protocolLAngleLoc,
 1545          SmallVectorImpl<SourceLocation> &protocolLocs,
 1546          SourceLocation &protocolRAngleLoc,
 1554          SourceLocation &typeArgsLAngleLoc,
 1556          SourceLocation &typeArgsRAngleLoc,
 1557          SourceLocation &protocolLAngleLoc,
 1559          SmallVectorImpl<SourceLocation> &protocolLocs,
 1560          SourceLocation &protocolRAngleLoc,
 1565   TypeResult parseObjCProtocolQualifierType(SourceLocation &rAngleLoc);
 1569   TypeResult parseObjCTypeArgsAndProtocolQualifiers(SourceLocation loc,
 1572                                                     SourceLocation &endLoc);
 1576   DeclGroupPtrTy ParseObjCAtProtocolDeclaration(SourceLocation atLoc,
 1602   DeclGroupPtrTy ParseObjCAtImplementationDeclaration(SourceLocation AtLoc,
 1605   Decl *ParseObjCAtAliasDeclaration(SourceLocation atLoc);
 1606   Decl *ParseObjCPropertySynthesize(SourceLocation atLoc);
 1607   Decl *ParseObjCPropertyDynamic(SourceLocation atLoc);
 1609   IdentifierInfo *ParseObjCSelectorPiece(SourceLocation &MethodLocation);
 1626   Decl *ParseObjCMethodDecl(SourceLocation mLoc, tok::TokenKind mType,
 1648   ExprResult ParseCaseExpression(SourceLocation CaseLoc);
 1658   ExprResult ParseExpressionWithLeadingAt(SourceLocation AtLoc);
 1660   ExprResult ParseExpressionWithLeadingExtension(SourceLocation ExtLoc);
 1686   bool diagnoseUnknownTemplateId(ExprResult TemplateName, SourceLocation Less);
 1706   typedef SmallVector<SourceLocation, 20> CommaLocsTy;
 1710                            SmallVectorImpl<SourceLocation> &CommaLocs,
 1717                                  SmallVectorImpl<SourceLocation> &CommaLocs);
 1732                                         SourceLocation &RParenLoc);
 1738                                                   SourceLocation LParenLoc,
 1739                                                   SourceLocation RParenLoc);
 1811   ExprResult ParseCXXPseudoDestructor(Expr *Base, SourceLocation OpLoc,
 1863   ExprResult ParseCXXNewExpression(bool UseGlobal, SourceLocation Start);
 1865                                             SourceLocation Start);
 1871                                           SourceLocation Loc,
 1903   ExprResult ParseObjCAtExpression(SourceLocation AtLocation);
 1904   ExprResult ParseObjCStringLiteral(SourceLocation AtLoc);
 1905   ExprResult ParseObjCCharacterLiteral(SourceLocation AtLoc);
 1906   ExprResult ParseObjCNumericLiteral(SourceLocation AtLoc);
 1907   ExprResult ParseObjCBooleanLiteral(SourceLocation AtLoc, bool ArgValue);
 1908   ExprResult ParseObjCArrayLiteral(SourceLocation AtLoc);
 1909   ExprResult ParseObjCDictionaryLiteral(SourceLocation AtLoc);
 1910   ExprResult ParseObjCBoxedExpr(SourceLocation AtLoc);
 1911   ExprResult ParseObjCEncodeExpression(SourceLocation AtLoc);
 1912   ExprResult ParseObjCSelectorExpression(SourceLocation AtLoc);
 1913   ExprResult ParseObjCProtocolExpression(SourceLocation AtLoc);
 1916   ExprResult ParseObjCMessageExpressionBody(SourceLocation LBracloc,
 1917                                             SourceLocation SuperLoc,
 1921       SourceLocation LBracloc, SourceLocation SuperLoc,
 1921       SourceLocation LBracloc, SourceLocation SuperLoc,
 1937   ParseStatement(SourceLocation *TrailingElseLoc = nullptr,
 1941       SourceLocation *TrailingElseLoc = nullptr);
 1945                                          SourceLocation *TrailingElseLoc,
 1962                                  SourceLocation Loc,
 1964   StmtResult ParseIfStatement(SourceLocation *TrailingElseLoc);
 1965   StmtResult ParseSwitchStatement(SourceLocation *TrailingElseLoc);
 1966   StmtResult ParseWhileStatement(SourceLocation *TrailingElseLoc);
 1968   StmtResult ParseForStatement(SourceLocation *TrailingElseLoc);
 1974   StmtResult ParseMicrosoftAsmStatement(SourceLocation AsmLoc);
 1977                                  SourceLocation *TrailingElseLoc,
 1996     SourceLocation KeywordLoc;
 2028   StmtResult ParseCXXTryBlockCommon(SourceLocation TryLoc, bool FnTry = false);
 2035   StmtResult ParseSEHExceptBlock(SourceLocation Loc);
 2036   StmtResult ParseSEHFinallyBlock(SourceLocation Loc);
 2042   StmtResult ParseObjCAtStatement(SourceLocation atLoc,
 2044   StmtResult ParseObjCTryStmt(SourceLocation atLoc);
 2045   StmtResult ParseObjCThrowStmt(SourceLocation atLoc);
 2046   StmtResult ParseObjCSynchronizedStmt(SourceLocation atLoc);
 2047   StmtResult ParseObjCAutoreleasePoolStmt(SourceLocation atLoc);
 2114     SourceLocation ColonLoc;
 2124                                   SourceLocation &DeclEnd,
 2126                                   SourceLocation *DeclSpecStart = nullptr);
 2128   ParseSimpleDeclaration(DeclaratorContext Context, SourceLocation &DeclEnd,
 2131                          SourceLocation *DeclSpecStart = nullptr);
 2134                                 SourceLocation *DeclEnd = nullptr,
 2175   void ParseEnumSpecifier(SourceLocation TagLoc, DeclSpec &DS,
 2178   void ParseEnumBody(SourceLocation StartLoc, Decl *TagDecl);
 2179   void ParseStructUnionBody(SourceLocation StartLoc, DeclSpec::TST TagType,
 2386   void ParseBlockId(SourceLocation CaretLoc);
 2405                                     SourceLocation CorrectLocation) {
 2414                                        SourceLocation CorrectLocation);
 2421                           SourceLocation FixItLoc = SourceLocation()) {
 2429                           SourceLocation FixItLoc = SourceLocation()) {
 2436                                     SourceLocation FixItLoc);
 2447   SourceLocation SkipCXX11Attributes();
 2458   ParseAttributeArgsCommon(IdentifierInfo *AttrName, SourceLocation AttrNameLoc,
 2459                            ParsedAttributes &Attrs, SourceLocation *EndLoc,
 2460                            IdentifierInfo *ScopeName, SourceLocation ScopeLoc,
 2467       SourceLocation endLoc;
 2473                                SourceLocation *endLoc = nullptr,
 2479                           SourceLocation *endLoc = nullptr,
 2483                              SourceLocation AttrNameLoc,
 2484                              ParsedAttributes &Attrs, SourceLocation *EndLoc,
 2485                              IdentifierInfo *ScopeName, SourceLocation ScopeLoc,
 2490   ParseClangAttributeArgs(IdentifierInfo *AttrName, SourceLocation AttrNameLoc,
 2491                           ParsedAttributes &Attrs, SourceLocation *EndLoc,
 2492                           IdentifierInfo *ScopeName, SourceLocation ScopeLoc,
 2498       SourceLocation endLoc;
 2504                                  SourceLocation *endLoc = nullptr) {
 2512                                  SourceLocation *endLoc = nullptr,
 2520                                     SourceLocation *EndLoc = nullptr);
 2522                             SourceLocation *EndLoc = nullptr);
 2526                                SourceLocation AttrNameLoc,
 2527                                ParsedAttributes &Attrs, SourceLocation *EndLoc,
 2529                                SourceLocation ScopeLoc);
 2531   IdentifierInfo *TryParseCXX11AttributeIdentifier(SourceLocation &Loc);
 2534                                      SourceLocation *endLoc = nullptr) {
 2540                                 SourceLocation *endLoc = nullptr);
 2542                                     SourceLocation *End = nullptr) {
 2548                                SourceLocation *End = nullptr);
 2550                                   SourceLocation AttrNameLoc,
 2554   SourceLocation SkipExtendedMicrosoftTypeAttributes();
 2574                                   SourceLocation AvailabilityLoc,
 2576                                   SourceLocation *endLoc,
 2578                                   SourceLocation ScopeLoc,
 2582   ExprResult ParseAvailabilityCheckExpr(SourceLocation StartLoc);
 2585                                           SourceLocation Loc,
 2587                                           SourceLocation *EndLoc,
 2589                                           SourceLocation ScopeLoc,
 2593                                        SourceLocation ObjCBridgeRelatedLoc,
 2595                                        SourceLocation *endLoc,
 2597                                        SourceLocation ScopeLoc,
 2601                                         SourceLocation AttrNameLoc,
 2603                                         SourceLocation *EndLoc,
 2605                                         SourceLocation ScopeLoc,
 2610                             SourceLocation AttrNameLoc, ParsedAttributes &Attrs,
 2611                             SourceLocation *EndLoc, IdentifierInfo *ScopeName,
 2612                             SourceLocation ScopeLoc, ParsedAttr::Syntax Syntax);
 2615   SourceLocation ParseDecltypeSpecifier(DeclSpec &DS);
 2617                                          SourceLocation StartLoc,
 2618                                          SourceLocation EndLoc);
 2622   ExprResult ParseAlignArgument(SourceLocation Start,
 2623                                 SourceLocation &EllipsisLoc);
 2625                                SourceLocation *endLoc = nullptr);
 2632                                           SourceLocation FriendLoc);
 2702                          SourceLocation &RefQualifierLoc);
 2711          SourceLocation &EllipsisLoc);
 2735                                 SourceLocation &DeclEnd,
 2736                                 SourceLocation InlineLoc = SourceLocation());
 2739     SourceLocation NamespaceLoc;
 2740     SourceLocation InlineLoc;
 2741     SourceLocation IdentLoc;
 2747                            unsigned int index, SourceLocation &InlineLoc,
 2754       SourceLocation &DeclEnd, ParsedAttributesWithRange &attrs);
 2756                             SourceLocation UsingLoc,
 2757                             SourceLocation &DeclEnd,
 2761     SourceLocation TypenameLoc;
 2764     SourceLocation EllipsisLoc;
 2776                                        SourceLocation UsingLoc,
 2777                                        SourceLocation &DeclEnd,
 2780       const ParsedTemplateInfo &TemplateInfo, SourceLocation UsingLoc,
 2781       UsingDeclarator &D, SourceLocation &DeclEnd, AccessSpecifier AS,
 2784   Decl *ParseStaticAssertDeclaration(SourceLocation &DeclEnd);
 2785   Decl *ParseNamespaceAlias(SourceLocation NamespaceLoc,
 2786                             SourceLocation AliasLoc, IdentifierInfo *Alias,
 2787                             SourceLocation &DeclEnd);
 2792   void ParseClassSpecifier(tok::TokenKind TagTokKind, SourceLocation TagLoc,
 2797   void SkipCXXMemberSpecification(SourceLocation StartLoc,
 2798                                   SourceLocation AttrFixitLoc,
 2801   void ParseCXXMemberSpecification(SourceLocation StartLoc,
 2802                                    SourceLocation AttrFixitLoc,
 2807                                        SourceLocation &EqualLoc);
 2828   TypeResult ParseBaseTypeSpecifier(SourceLocation &BaseLoc,
 2829                                     SourceLocation &EndLocation);
 2835                                     SourceLocation TemplateKWLoc,
 2837                                     SourceLocation NameLoc,
 2851                                             SourceLocation Loc);
 2855       SourceLocation Loc,
 2862                                      SourceLocation Loc);
 2867                                          SourceLocation Loc);
 2956   ExprResult ParseOpenMPParensExpr(StringRef ClauseName, SourceLocation &RLoc,
 2962     SourceLocation ColonLoc;
 2963     SourceLocation RLoc;
 2970     SmallVector<SourceLocation, OMPMapClause::NumberOfModifiers>
 2974     SourceLocation DepLinMapLoc;
 2986                           SourceLocation *TemplateKWLoc,
 3001                                              SourceLocation &DeclEnd,
 3005                                                  SourceLocation &DeclEnd,
 3010       ParsingDeclRAIIObject &DiagsFromParams, SourceLocation &DeclEnd,
 3014                                SourceLocation &LAngleLoc,
 3015                                SourceLocation &RAngleLoc);
 3023   void DiagnoseMisplacedEllipsis(SourceLocation EllipsisLoc,
 3024                                  SourceLocation CorrectLoc,
 3027   void DiagnoseMisplacedEllipsisInDeclarator(SourceLocation EllipsisLoc,
 3032   bool ParseGreaterThanInTemplateList(SourceLocation &RAngleLoc,
 3036                                         SourceLocation &LAngleLoc,
 3038                                         SourceLocation &RAngleLoc);
 3042                                SourceLocation TemplateKWLoc,
 3050                                    SourceLocation ExternLoc,
 3051                                    SourceLocation TemplateLoc,
 3052                                    SourceLocation &DeclEnd,
 3058                          SourceLocation &DeclEnd);
 3063   Decl *ParseModuleImport(SourceLocation AtLoc);
 3074       SourceLocation UseLoc,
 3075       SmallVectorImpl<std::pair<IdentifierInfo *, SourceLocation>> &Path,
tools/clang/include/clang/Parse/RAIIObjectsForParser.h
  370     SourceLocation LOpen, LClose;
  408     SourceLocation getOpenLocation() const { return LOpen; }
  409     SourceLocation getCloseLocation() const { return LClose; }
  432         SourceLocation SemiLoc = P.ConsumeToken();
tools/clang/include/clang/Rewrite/Core/HTMLRewrite.h
   32   void HighlightRange(Rewriter &R, SourceLocation B, SourceLocation E,
   32   void HighlightRange(Rewriter &R, SourceLocation B, SourceLocation E,
tools/clang/include/clang/Rewrite/Core/Rewriter.h
   82   static bool isRewritable(SourceLocation Loc) {
  115   bool InsertText(SourceLocation Loc, StringRef Str,
  123   bool InsertTextAfter(SourceLocation Loc, StringRef Str) {
  129   bool InsertTextAfterToken(SourceLocation Loc, StringRef Str);
  136   bool InsertTextBefore(SourceLocation Loc, StringRef Str) {
  141   bool RemoveText(SourceLocation Start, unsigned Length,
  158   bool ReplaceText(SourceLocation Start, unsigned OrigLength,
  184   bool IncreaseIndentation(CharSourceRange range, SourceLocation parentIndent);
  185   bool IncreaseIndentation(SourceRange range, SourceLocation parentIndent) {
  218   unsigned getLocationOffsetAndFileID(SourceLocation Loc, FileID &FID) const;
tools/clang/include/clang/Rewrite/Core/TokenRewriter.h
   42     std::map<SourceLocation, TokenRefTy> TokenAtLoc;
tools/clang/include/clang/Rewrite/Frontend/FixItRewriter.h
  129   void Diag(SourceLocation Loc, unsigned DiagID);
tools/clang/include/clang/Sema/CodeCompleteConsumer.h
 1145                                          SourceLocation OpenParLoc) {}
 1196                                  SourceLocation OpenParLoc) override;
tools/clang/include/clang/Sema/DeclSpec.h
   70   void setBeginLoc(SourceLocation Loc) { Range.setBegin(Loc); }
   71   void setEndLoc(SourceLocation Loc) { Range.setEnd(Loc); }
   72   SourceLocation getBeginLoc() const { return Range.getBegin(); }
   73   SourceLocation getEndLoc() const { return Range.getEnd(); }
   91   void Extend(ASTContext &Context, SourceLocation TemplateKWLoc, TypeLoc TL,
   92               SourceLocation ColonColonLoc);
  106               SourceLocation IdentifierLoc, SourceLocation ColonColonLoc);
  106               SourceLocation IdentifierLoc, SourceLocation ColonColonLoc);
  120               SourceLocation NamespaceLoc, SourceLocation ColonColonLoc);
  120               SourceLocation NamespaceLoc, SourceLocation ColonColonLoc);
  135               SourceLocation AliasLoc, SourceLocation ColonColonLoc);
  135               SourceLocation AliasLoc, SourceLocation ColonColonLoc);
  139   void MakeGlobal(ASTContext &Context, SourceLocation ColonColonLoc);
  155                  SourceLocation SuperLoc, SourceLocation ColonColonLoc);
  155                  SourceLocation SuperLoc, SourceLocation ColonColonLoc);
  186   SourceLocation getLastQualifierNameLoc() const;
  387   SourceLocation StorageClassSpecLoc, ThreadStorageClassSpecLoc;
  389   SourceLocation TSCLoc, TSSLoc, TSTLoc, AltiVecLoc, TSSatLoc;
  394   SourceLocation TSTNameLoc;
  396   SourceLocation TQ_constLoc, TQ_restrictLoc, TQ_volatileLoc, TQ_atomicLoc,
  398   SourceLocation FS_inlineLoc, FS_virtualLoc, FS_explicitLoc, FS_noreturnLoc;
  399   SourceLocation FS_explicitCloseParenLoc;
  400   SourceLocation FS_forceinlineLoc;
  401   SourceLocation FriendLoc, ModulePrivateLoc, ConstexprLoc;
  402   SourceLocation TQ_pipeLoc;
  450   SourceLocation getStorageClassSpecLoc() const { return StorageClassSpecLoc; }
  451   SourceLocation getThreadStorageClassSpecLoc() const {
  498   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
  499   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
  501   SourceLocation getTypeSpecWidthLoc() const { return TSWRange.getBegin(); }
  503   SourceLocation getTypeSpecComplexLoc() const { return TSCLoc; }
  504   SourceLocation getTypeSpecSignLoc() const { return TSSLoc; }
  505   SourceLocation getTypeSpecTypeLoc() const { return TSTLoc; }
  506   SourceLocation getAltiVecLoc() const { return AltiVecLoc; }
  507   SourceLocation getTypeSpecSatLoc() const { return TSSatLoc; }
  509   SourceLocation getTypeSpecTypeNameLoc() const {
  539   SourceLocation getConstSpecLoc() const { return TQ_constLoc; }
  540   SourceLocation getRestrictSpecLoc() const { return TQ_restrictLoc; }
  541   SourceLocation getVolatileSpecLoc() const { return TQ_volatileLoc; }
  542   SourceLocation getAtomicSpecLoc() const { return TQ_atomicLoc; }
  543   SourceLocation getUnalignedSpecLoc() const { return TQ_unalignedLoc; }
  544   SourceLocation getPipeLoc() const { return TQ_pipeLoc; }
  561   SourceLocation getInlineSpecLoc() const {
  570   SourceLocation getVirtualSpecLoc() const { return FS_virtualLoc; }
  575   SourceLocation getExplicitSpecLoc() const { return FS_explicitLoc; }
  583   SourceLocation getNoreturnSpecLoc() const { return FS_noreturnLoc; }
  603       llvm::function_ref<void(TQ, StringRef, SourceLocation)> Handle);
  609       llvm::function_ref<void(TQ, StringRef, SourceLocation)> Handle);
  629   void SetRangeStart(SourceLocation Loc) { Range.setBegin(Loc); }
  630   void SetRangeEnd(SourceLocation Loc) { Range.setEnd(Loc); }
  642   bool SetStorageClassSpec(Sema &S, SCS SC, SourceLocation Loc,
  645   bool SetStorageClassSpecThread(TSCS TSC, SourceLocation Loc,
  647   bool SetTypeSpecWidth(TSW W, SourceLocation Loc, const char *&PrevSpec,
  649   bool SetTypeSpecComplex(TSC C, SourceLocation Loc, const char *&PrevSpec,
  651   bool SetTypeSpecSign(TSS S, SourceLocation Loc, const char *&PrevSpec,
  653   bool SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec,
  655   bool SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec,
  658   bool SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec,
  661   bool SetTypeSpecType(TST T, SourceLocation TagKwLoc,
  662                        SourceLocation TagNameLoc, const char *&PrevSpec,
  665   bool SetTypeSpecType(TST T, SourceLocation TagKwLoc,
  666                        SourceLocation TagNameLoc, const char *&PrevSpec,
  670   bool SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec,
  673   bool SetTypeAltiVecVector(bool isAltiVecVector, SourceLocation Loc,
  676   bool SetTypeAltiVecPixel(bool isAltiVecPixel, SourceLocation Loc,
  679   bool SetTypeAltiVecBool(bool isAltiVecBool, SourceLocation Loc,
  682   bool SetTypePipe(bool isPipe, SourceLocation Loc,
  685   bool SetTypeSpecSat(SourceLocation Loc, const char *&PrevSpec,
  701   bool SetTypeQual(TQ T, SourceLocation Loc);
  703   bool SetTypeQual(TQ T, SourceLocation Loc, const char *&PrevSpec,
  706   bool setFunctionSpecInline(SourceLocation Loc, const char *&PrevSpec,
  708   bool setFunctionSpecForceInline(SourceLocation Loc, const char *&PrevSpec,
  710   bool setFunctionSpecVirtual(SourceLocation Loc, const char *&PrevSpec,
  712   bool setFunctionSpecExplicit(SourceLocation Loc, const char *&PrevSpec,
  714                                SourceLocation CloseParenLoc);
  715   bool setFunctionSpecNoreturn(SourceLocation Loc, const char *&PrevSpec,
  718   bool SetFriendSpec(SourceLocation Loc, const char *&PrevSpec,
  720   bool setModulePrivateSpec(SourceLocation Loc, const char *&PrevSpec,
  722   bool SetConstexprSpec(ConstexprSpecKind ConstexprKind, SourceLocation Loc,
  726   SourceLocation getFriendSpecLoc() const { return FriendLoc; }
  729   SourceLocation getModulePrivateSpecLoc() const { return ModulePrivateLoc; }
  735   SourceLocation getConstexprSpecLoc() const { return ConstexprLoc; }
  868   SourceLocation getNullabilityLoc() const {
  875   void setNullability(SourceLocation loc, NullabilityKind kind) {
  885   SourceLocation getGetterNameLoc() const { return GetterNameLoc; }
  886   void setGetterName(IdentifierInfo *name, SourceLocation loc) {
  893   SourceLocation getSetterNameLoc() const { return SetterNameLoc; }
  894   void setSetterName(IdentifierInfo *name, SourceLocation loc) {
  910   SourceLocation NullabilityLoc;
  914   SourceLocation GetterNameLoc; // location of the getter attribute's value
  915   SourceLocation SetterNameLoc; // location of the setter attribute's value
 1002   SourceLocation StartLocation;
 1005   SourceLocation EndLocation;
 1033   void setIdentifier(const IdentifierInfo *Id, SourceLocation IdLoc) {
 1048   void setOperatorFunctionId(SourceLocation OperatorLoc,
 1050                              SourceLocation SymbolLocations[3]);
 1060   void setConversionFunctionId(SourceLocation OperatorLoc,
 1062                                SourceLocation EndLoc) {
 1077   void setLiteralOperatorId(const IdentifierInfo *Id, SourceLocation OpLoc,
 1078                               SourceLocation IdLoc) {
 1093                           SourceLocation ClassNameLoc,
 1094                           SourceLocation EndLoc) {
 1115   void setDestructorName(SourceLocation TildeLoc,
 1117                          SourceLocation EndLoc) {
 1137                              SourceLocation TemplateLoc) {
 1147   SourceLocation getBeginLoc() const LLVM_READONLY { return StartLocation; }
 1148   SourceLocation getEndLoc() const LLVM_READONLY { return EndLocation; }
 1164   SourceLocation Loc;
 1166   SourceLocation EndLoc;
 1236     SourceLocation IdentLoc;
 1247     ParamInfo(IdentifierInfo *ident, SourceLocation iloc,
 1401     SourceLocation getLParenLoc() const {
 1402       return SourceLocation::getFromRawEncoding(LParenLoc);
 1405     SourceLocation getEllipsisLoc() const {
 1406       return SourceLocation::getFromRawEncoding(EllipsisLoc);
 1409     SourceLocation getRParenLoc() const {
 1410       return SourceLocation::getFromRawEncoding(RParenLoc);
 1413     SourceLocation getExceptionSpecLocBeg() const {
 1414       return SourceLocation::getFromRawEncoding(ExceptionSpecLocBeg);
 1417     SourceLocation getExceptionSpecLocEnd() const {
 1418       return SourceLocation::getFromRawEncoding(ExceptionSpecLocEnd);
 1426     SourceLocation getRefQualifierLoc() const {
 1427       return SourceLocation::getFromRawEncoding(RefQualifierLoc);
 1431     SourceLocation getConstQualifierLoc() const {
 1437     SourceLocation getVolatileQualifierLoc() const {
 1443     SourceLocation getRestrictQualifierLoc() const {
 1449     SourceLocation getMutableLoc() const {
 1450       return SourceLocation::getFromRawEncoding(MutableLoc);
 1555   static DeclaratorChunk getPointer(unsigned TypeQuals, SourceLocation Loc,
 1556                                     SourceLocation ConstQualLoc,
 1557                                     SourceLocation VolatileQualLoc,
 1558                                     SourceLocation RestrictQualLoc,
 1559                                     SourceLocation AtomicQualLoc,
 1560                                     SourceLocation UnalignedQualLoc) {
 1574   static DeclaratorChunk getReference(unsigned TypeQuals, SourceLocation Loc,
 1587                                   SourceLocation LBLoc, SourceLocation RBLoc) {
 1587                                   SourceLocation LBLoc, SourceLocation RBLoc) {
 1603                                      SourceLocation LParenLoc,
 1605                                      SourceLocation EllipsisLoc,
 1606                                      SourceLocation RParenLoc,
 1608                                      SourceLocation RefQualifierLoc,
 1609                                      SourceLocation MutableLoc,
 1618                                      SourceLocation LocalRangeBegin,
 1619                                      SourceLocation LocalRangeEnd,
 1627                                          SourceLocation Loc) {
 1637                                  SourceLocation Loc) {
 1647                                           SourceLocation Loc) {
 1658   static DeclaratorChunk getParen(SourceLocation LParenLoc,
 1659                                   SourceLocation RParenLoc) {
 1678     SourceLocation NameLoc;
 1683   SourceLocation LSquareLoc, RSquareLoc;
 1717   SourceLocation getLSquareLoc() const { return LSquareLoc; }
 1718   SourceLocation getRSquareLoc() const { return RSquareLoc; }
 1842   SourceLocation CommaLoc;
 1846   SourceLocation EllipsisLoc;
 1900   SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
 1901   SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); }
 1906   void SetRangeBegin(SourceLocation Loc) {
 1911   void SetRangeEnd(SourceLocation Loc) {
 2143   SourceLocation getIdentifierLoc() const { return Name.StartLocation; }
 2146   void SetIdentifier(IdentifierInfo *Id, SourceLocation IdLoc) {
 2152   setDecompositionBindings(SourceLocation LSquareLoc,
 2154                            SourceLocation RSquareLoc);
 2161                    SourceLocation EndLoc) {
 2172   void AddTypeInfo(const DeclaratorChunk &TI, SourceLocation EndLoc) {
 2412   void takeAttributes(ParsedAttributes &attrs, SourceLocation lastLoc) {
 2461   SourceLocation getCommaLoc() const { return CommaLoc; }
 2462   void setCommaLoc(SourceLocation CL) { CommaLoc = CL; }
 2465   SourceLocation getEllipsisLoc() const { return EllipsisLoc; }
 2466   void setEllipsisLoc(SourceLocation EL) { EllipsisLoc = EL; }
 2522   bool SetSpecifier(Specifier VS, SourceLocation Loc,
 2528   SourceLocation getOverrideLoc() const { return VS_overrideLoc; }
 2532   SourceLocation getFinalLoc() const { return VS_finalLoc; }
 2538   SourceLocation getFirstLocation() const { return FirstLocation; }
 2539   SourceLocation getLastLocation() const { return LastLocation; }
 2546   SourceLocation VS_overrideLoc, VS_finalLoc;
 2547   SourceLocation FirstLocation;
 2548   SourceLocation LastLocation;
 2563     SourceLocation Loc;
 2565     SourceLocation EllipsisLoc;
 2571     LambdaCapture(LambdaCaptureKind Kind, SourceLocation Loc,
 2572                   IdentifierInfo *Id, SourceLocation EllipsisLoc,
 2582   SourceLocation DefaultLoc;
 2591                   SourceLocation Loc,
 2593                   SourceLocation EllipsisLoc,
tools/clang/include/clang/Sema/DelayedDiagnostic.h
  136   SourceLocation Loc;
  141                                             ArrayRef<SourceLocation> Locs,
  149   static DelayedDiagnostic makeAccess(SourceLocation Loc,
  159   static DelayedDiagnostic makeForbiddenType(SourceLocation loc,
  196   ArrayRef<SourceLocation> getAvailabilitySelectorLocs() const {
  246     SourceLocation *SelectorLocs;
tools/clang/include/clang/Sema/Designator.h
   78   SourceLocation getDotLoc() const {
   80     return SourceLocation::getFromRawEncoding(FieldInfo.DotLoc);
   83   SourceLocation getFieldLoc() const {
   85     return SourceLocation::getFromRawEncoding(FieldInfo.NameLoc);
  102   SourceLocation getLBracketLoc() const {
  106       return SourceLocation::getFromRawEncoding(ArrayInfo.LBracketLoc);
  108       return SourceLocation::getFromRawEncoding(ArrayRangeInfo.LBracketLoc);
  111   SourceLocation getRBracketLoc() const {
  115       return SourceLocation::getFromRawEncoding(ArrayInfo.RBracketLoc);
  117       return SourceLocation::getFromRawEncoding(ArrayRangeInfo.RBracketLoc);
  120   SourceLocation getEllipsisLoc() const {
  122     return SourceLocation::getFromRawEncoding(ArrayRangeInfo.EllipsisLoc);
  125   static Designator getField(const IdentifierInfo *II, SourceLocation DotLoc,
  126                              SourceLocation NameLoc) {
  136                              SourceLocation LBracketLoc) {
  147                                   SourceLocation LBracketLoc,
  148                                   SourceLocation EllipsisLoc) {
  159   void setRBracketLoc(SourceLocation RBracketLoc) const {
tools/clang/include/clang/Sema/ExternalSemaSource.h
   45   SourceLocation Location;
   84   ReadUndefinedButUsed(llvm::MapVector<NamedDecl *, SourceLocation> &Undefined);
   87       FieldDecl *, llvm::SmallVector<std::pair<SourceLocation, bool>, 4>> &);
  155                  SmallVectorImpl<std::pair<Selector, SourceLocation> > &Sels) {}
  183                                            SourceLocation> > &Pending) {}
  220   virtual bool MaybeDiagnoseMissingCompleteType(SourceLocation Loc,
tools/clang/include/clang/Sema/Initialization.h
  217   InitializedEntity(EntityKind Kind, SourceLocation Loc, QualType Type,
  235   InitializedEntity(IdentifierInfo *VarID, QualType FieldType, SourceLocation Loc)
  285   static InitializedEntity InitializeResult(SourceLocation ReturnLoc,
  290   static InitializedEntity InitializeStmtExprResult(SourceLocation ReturnLoc,
  295   static InitializedEntity InitializeBlock(SourceLocation BlockVarLoc,
  300   static InitializedEntity InitializeLambdaToBlock(SourceLocation BlockVarLoc,
  307   static InitializedEntity InitializeException(SourceLocation ThrowLoc,
  313   static InitializedEntity InitializeNew(SourceLocation NewLoc, QualType Type) {
  393                                                    SourceLocation Loc) {
  483   SourceLocation getReturnLoc() const {
  485     return SourceLocation::getFromRawEncoding(LocAndNRVO.Location);
  490   SourceLocation getThrowLoc() const {
  492     return SourceLocation::getFromRawEncoding(LocAndNRVO.Location);
  519   SourceLocation getCaptureLoc() const {
  521     return SourceLocation::getFromRawEncoding(Capture.Location);
  590   SourceLocation Locations[3];
  592   InitializationKind(InitKind Kind, InitContext Context, SourceLocation Loc1,
  593                      SourceLocation Loc2, SourceLocation Loc3)
  593                      SourceLocation Loc2, SourceLocation Loc3)
  602   static InitializationKind CreateDirect(SourceLocation InitLoc,
  603                                          SourceLocation LParenLoc,
  604                                          SourceLocation RParenLoc) {
  609   static InitializationKind CreateDirectList(SourceLocation InitLoc) {
  614   static InitializationKind CreateDirectList(SourceLocation InitLoc,
  615                                              SourceLocation LBraceLoc,
  616                                              SourceLocation RBraceLoc) {
  629   static InitializationKind CreateCStyleCast(SourceLocation StartLoc,
  648   static InitializationKind CreateCopy(SourceLocation InitLoc,
  649                                        SourceLocation EqualLoc,
  657   static InitializationKind CreateDefault(SourceLocation InitLoc) {
  662   static InitializationKind CreateValue(SourceLocation InitLoc,
  663                                         SourceLocation LParenLoc,
  664                                         SourceLocation RParenLoc,
  672   static InitializationKind CreateForInit(SourceLocation Loc, bool DirectInit,
  713   SourceLocation getLocation() const { return Locations[0]; }
  722   SourceLocation getEqualLoc() const {
 1086   SourceLocation ZeroInitializationFixitLoc;
 1091   void SetZeroInitializationFixit(const std::string& Fixit, SourceLocation L) {
tools/clang/include/clang/Sema/Lookup.h
  159                SourceLocation NameLoc, Sema::LookupNameKind LookupKind,
  606   SourceLocation getNameLoc() const {
tools/clang/include/clang/Sema/MultiplexExternalSemaSource.h
  223       llvm::MapVector<NamedDecl *, SourceLocation> &Undefined) override;
  226       FieldDecl *, llvm::SmallVector<std::pair<SourceLocation, bool>, 4>> &
  294                                               SourceLocation> > &Sels) override;
  321      SmallVectorImpl<std::pair<ValueDecl*, SourceLocation> >& Pending) override;
  352   bool MaybeDiagnoseMissingCompleteType(SourceLocation Loc,
tools/clang/include/clang/Sema/Overload.h
  690                                      SourceLocation CaretLoc,
  964     SourceLocation Loc;
 1005     OverloadCandidateSet(SourceLocation Loc, CandidateSetKind CSK,
 1012     SourceLocation getLocation() const { return Loc; }
 1066     OverloadingResult BestViableFunction(Sema &S, SourceLocation Loc,
 1071         SourceLocation OpLoc = SourceLocation(),
 1078         SourceLocation Loc = SourceLocation(),
 1085                         SourceLocation OpLoc = SourceLocation());
 1102                                  SourceLocation Loc,
tools/clang/include/clang/Sema/ParsedAttr.h
   46   SourceLocation KeywordLoc;
   66   SourceLocation StrictLoc;
   72                    SourceLocation Strict, const Expr *ReplaceExpr)
   96   SourceLocation Loc;
   99   static IdentifierLoc *create(ASTContext &Ctx, SourceLocation Loc,
  141   SourceLocation MacroExpansionLoc;
  142   SourceLocation EllipsisLoc;
  180   SourceLocation UnavailableLoc;
  202              IdentifierInfo *scopeName, SourceLocation scopeLoc,
  204              SourceLocation ellipsisLoc)
  217              IdentifierInfo *scopeName, SourceLocation scopeLoc,
  220              const AvailabilityChange &obsoleted, SourceLocation unavailable,
  221              const Expr *messageExpr, Syntax syntaxUsed, SourceLocation strict,
  237              IdentifierInfo *scopeName, SourceLocation scopeLoc,
  254              IdentifierInfo *scopeName, SourceLocation scopeLoc,
  273              IdentifierInfo *scopeName, SourceLocation scopeLoc,
  286              IdentifierInfo *scopeName, SourceLocation scopeLoc,
  368   SourceLocation getEllipsisLoc() const { return EllipsisLoc; }
  413   SourceLocation getStrictLoc() const {
  419   SourceLocation getUnavailableLoc() const {
  475   void setMacroIdentifier(IdentifierInfo *MacroName, SourceLocation Loc) {
  487   SourceLocation getMacroExpansionLoc() const {
  648                      IdentifierInfo *scopeName, SourceLocation scopeLoc,
  651                      SourceLocation ellipsisLoc = SourceLocation()) {
  667                      IdentifierInfo *scopeName, SourceLocation scopeLoc,
  671                      SourceLocation unavailable, const Expr *MessageExpr,
  672                      ParsedAttr::Syntax syntax, SourceLocation strict,
  681                      IdentifierInfo *scopeName, SourceLocation scopeLoc,
  694                            IdentifierInfo *scopeName, SourceLocation scopeLoc,
  707                                   SourceLocation scopeLoc, ParsedType typeArg,
  719                           IdentifierInfo *scopeName, SourceLocation scopeLoc,
  851                      IdentifierInfo *scopeName, SourceLocation scopeLoc,
  854                      SourceLocation ellipsisLoc = SourceLocation()) {
  863                      IdentifierInfo *scopeName, SourceLocation scopeLoc,
  867                      SourceLocation unavailable, const Expr *MessageExpr,
  868                      ParsedAttr::Syntax syntax, SourceLocation strict,
  879                      IdentifierInfo *scopeName, SourceLocation scopeLoc,
  891                            IdentifierInfo *scopeName, SourceLocation scopeLoc,
  904                              IdentifierInfo *scopeName, SourceLocation scopeLoc,
  916                      IdentifierInfo *scopeName, SourceLocation scopeLoc,
tools/clang/include/clang/Sema/ParsedTemplate.h
   50     ParsedTemplateArgument(KindType Kind, void *Arg, SourceLocation Loc)
   64                            SourceLocation TemplateLoc)
   94     SourceLocation getLocation() const { return Loc; }
  106     SourceLocation getEllipsisLoc() const {
  117                                               SourceLocation EllipsisLoc) const;
  132     SourceLocation Loc;
  136     SourceLocation EllipsisLoc;
  156     SourceLocation TemplateKWLoc;
  160     SourceLocation TemplateNameLoc;
  177     SourceLocation LAngleLoc;
  181     SourceLocation RAngleLoc;
  194     Create(CXXScopeSpec SS, SourceLocation TemplateKWLoc,
  195            SourceLocation TemplateNameLoc, IdentifierInfo *Name,
  198            SourceLocation LAngleLoc, SourceLocation RAngleLoc,
  198            SourceLocation LAngleLoc, SourceLocation RAngleLoc,
  220     TemplateIdAnnotation(CXXScopeSpec SS, SourceLocation TemplateKWLoc,
  221                          SourceLocation TemplateNameLoc, IdentifierInfo *Name,
  225                          SourceLocation LAngleLoc, SourceLocation RAngleLoc,
  225                          SourceLocation LAngleLoc, SourceLocation RAngleLoc,
tools/clang/include/clang/Sema/ScopeInfo.h
   87   SourceLocation Loc;
   90   PossiblyUnreachableDiag(const PartialDiagnostic &PD, SourceLocation Loc,
  165   SourceLocation FirstCoroutineStmtLoc;
  168   SourceLocation FirstReturnLoc;
  171   SourceLocation FirstCXXTryLoc;
  174   SourceLocation FirstSEHTryLoc;
  420   void setHasCXXTry(SourceLocation TryLoc) {
  425   void setHasSEHTry(SourceLocation TryLoc) {
  448   void setFirstCoroutineStmt(SourceLocation Loc, StringRef Keyword) {
  522   SourceLocation Loc;
  525   SourceLocation EllipsisLoc;
  555           SourceLocation Loc, SourceLocation EllipsisLoc, QualType CaptureType,
  555           SourceLocation Loc, SourceLocation EllipsisLoc, QualType CaptureType,
  564   Capture(IsThisCapture, bool IsNested, SourceLocation Loc,
  573           SourceLocation Loc, QualType CaptureType)
  615   SourceLocation getLocation() const { return Loc; }
  619   SourceLocation getEllipsisLoc() const { return EllipsisLoc; }
  661                   SourceLocation Loc, SourceLocation EllipsisLoc,
  661                   SourceLocation Loc, SourceLocation EllipsisLoc,
  668   void addVLATypeCapture(SourceLocation Loc, const VariableArrayType *VLAType,
  674   void addThisCapture(bool isNested, SourceLocation Loc, QualType CaptureType,
  805   SourceLocation CaptureDefaultLoc;
  883   SourceLocation PotentialThisCaptureLocation;
  928   void addPotentialThisCapture(SourceLocation Loc) {
 1028                                                SourceLocation Loc,
tools/clang/include/clang/Sema/Sema.h
  138   typedef ArrayRef<std::pair<IdentifierInfo *, SourceLocation>> ModuleIdPath;
  230                   SourceLocation> UnexpandedParameterPack;
  237   SourceLocation PointerLoc;
  241   SourceLocation PointerEndLoc;
  289   void enterCondition(Sema &S, SourceLocation Tok);
  290   void enterReturn(Sema &S, SourceLocation Tok);
  291   void enterVariableInit(SourceLocation Tok, Decl *D);
  298   void enterFunctionArgument(SourceLocation Tok,
  301   void enterParenExpr(SourceLocation Tok, SourceLocation LParLoc);
  301   void enterParenExpr(SourceLocation Tok, SourceLocation LParLoc);
  302   void enterUnary(Sema &S, SourceLocation Tok, tok::TokenKind OpKind,
  303                   SourceLocation OpLoc);
  304   void enterBinary(Sema &S, SourceLocation Tok, Expr *LHS, tok::TokenKind Op);
  305   void enterMemAccess(Sema &S, SourceLocation Tok, Expr *Base);
  306   void enterSubscript(Sema &S, SourceLocation Tok, Expr *LHS);
  308   void enterTypeCast(SourceLocation Tok, QualType CastType);
  310   QualType get(SourceLocation Tok) const {
  322   SourceLocation ExpectedLoc;
  409   SourceLocation ImplicitMSInheritanceAttrLoc;
  435     SourceLocation PragmaLocation;
  437     void Act(SourceLocation PragmaLocation,
  463       SourceLocation PragmaLocation;
  464       SourceLocation PragmaPushLocation;
  466            SourceLocation PragmaLocation, SourceLocation PragmaPushLocation)
  466            SourceLocation PragmaLocation, SourceLocation PragmaPushLocation)
  471     void Act(SourceLocation PragmaLocation,
  505     SourceLocation CurrentPragmaLocation;
  526     SourceLocation CurrentPragmaLocation;
  554   SourceLocation CurInitSegLoc;
  561     SourceLocation Loc;
  570     SourceLocation Loc;
  585   SourceLocation OptimizeOffPragmaLocation;
  641   typedef std::pair<SourceLocation, bool> DeleteExprLoc;
  839     void addContextNote(SourceLocation UseLoc) {
 1181   llvm::DenseMap<ParmVarDecl *, SourceLocation> UnparsedDefaultArgLocs;
 1185   llvm::MapVector<NamedDecl *, SourceLocation> UndefinedButUsed;
 1194       SmallVectorImpl<std::pair<NamedDecl *, SourceLocation> > &Undefined);
 1214   llvm::MapVector<Selector, SourceLocation> ReferencedSelectors;
 1218   llvm::SmallVector<std::pair<SourceLocation, const BlockDecl *>, 1>
 1328   void warnStackExhausted(SourceLocation Loc);
 1334   void runWithSufficientStackSpace(SourceLocation Loc,
 1385         const SemaDiagnosticBuilder &Diag, const T &Value) {
 1393   SemaDiagnosticBuilder Diag(SourceLocation Loc, unsigned DiagID) {
 1399   SemaDiagnosticBuilder Diag(SourceLocation Loc, const PartialDiagnostic& PD);
 1404   bool findMacroSpelling(SourceLocation &loc, StringRef name);
 1408   getFixItZeroInitializerForType(QualType T, SourceLocation Loc) const;
 1409   std::string getFixItZeroLiteralForType(QualType T, SourceLocation Loc) const;
 1412   SourceLocation getLocForEndOfToken(SourceLocation Loc, unsigned Offset = 0);
 1412   SourceLocation getLocForEndOfToken(SourceLocation Loc, unsigned Offset = 0);
 1517   QualType BuildQualifiedType(QualType T, SourceLocation Loc, Qualifiers Qs,
 1519   QualType BuildQualifiedType(QualType T, SourceLocation Loc, unsigned CVRA,
 1522                             SourceLocation Loc, DeclarationName Entity);
 1524                               SourceLocation Loc, DeclarationName Entity);
 1528   QualType BuildVectorType(QualType T, Expr *VecSize, SourceLocation AttrLoc);
 1530                               SourceLocation AttrLoc);
 1532                                  SourceLocation AttrLoc);
 1536                                  SourceLocation AttrLoc);
 1538   bool CheckQualifiedFunctionForTypeId(QualType T, SourceLocation Loc);
 1540   bool CheckFunctionReturnType(QualType T, SourceLocation Loc);
 1571                              SourceLocation Loc, DeclarationName Entity,
 1575                                   SourceLocation Loc,
 1578                                  SourceLocation Loc, DeclarationName Entity);
 1580   QualType BuildAtomicType(QualType T, SourceLocation Loc);
 1582                          SourceLocation Loc);
 1584                          SourceLocation Loc);
 1596   const FunctionProtoType *ResolveExceptionSpec(SourceLocation Loc,
 1604       const FunctionProtoType *Old, SourceLocation OldLoc,
 1605       const FunctionProtoType *New, SourceLocation NewLoc);
 1608       const FunctionProtoType *Old, SourceLocation OldLoc,
 1609       const FunctionProtoType *New, SourceLocation NewLoc);
 1616                                 SourceLocation SuperLoc,
 1618                                 SourceLocation SubLoc);
 1622                                SourceLocation TargetLoc,
 1624                                SourceLocation SourceLoc);
 1630   ParsedType ActOnObjCInstanceType(SourceLocation Loc);
 1636     virtual void diagnose(Sema &S, SourceLocation Loc, QualType T) = 0;
 1652   static SourceRange getPrintable(SourceLocation L) { return L; }
 1674     void diagnose(Sema &S, SourceLocation Loc, QualType T) override {
 1693   bool RequireCompleteTypeImpl(SourceLocation Loc, QualType T,
 1697     SourceLocation BeginLoc;
 1778       SourceLocation Loc, const NamedDecl *D,
 1783   bool isCompleteType(SourceLocation Loc, QualType T) {
 1786   bool RequireCompleteType(SourceLocation Loc, QualType T,
 1788   bool RequireCompleteType(SourceLocation Loc, QualType T,
 1792   bool RequireCompleteType(SourceLocation Loc, QualType T, unsigned DiagID,
 1808   bool RequireLiteralType(SourceLocation Loc, QualType T,
 1810   bool RequireLiteralType(SourceLocation Loc, QualType T, unsigned DiagID);
 1813   bool RequireLiteralType(SourceLocation Loc, QualType T, unsigned DiagID,
 1823   QualType BuildTypeofExprType(Expr *E, SourceLocation Loc);
 1826   QualType BuildDecltypeType(Expr *E, SourceLocation Loc,
 1830                                    SourceLocation Loc);
 1852   ParsedType getTypeName(const IdentifierInfo &II, SourceLocation NameLoc,
 1863                                SourceLocation IILoc,
 1874                                       SourceLocation NameLoc,
 2042                                   IdentifierInfo *&Name, SourceLocation NameLoc,
 2049                                                     SourceLocation NameLoc);
 2054                                                    SourceLocation NameLoc,
 2060                                           SourceLocation NameLoc,
 2096                                           SourceLocation Less,
 2097                                           SourceLocation Greater);
 2106                                     DeclarationName Name, SourceLocation Loc,
 2110                             SourceLocation FallbackLoc,
 2111                             SourceLocation ConstQualLoc = SourceLocation(),
 2112                             SourceLocation VolatileQualLoc = SourceLocation(),
 2113                             SourceLocation RestrictQualLoc = SourceLocation(),
 2114                             SourceLocation AtomicQualLoc = SourceLocation(),
 2115                             SourceLocation UnalignedQualLoc = SourceLocation());
 2128   void CheckShadowingDeclModification(Expr *E, SourceLocation Loc);
 2203                                           SourceLocation Loc,
 2205   ParmVarDecl *CheckParameter(DeclContext *DC, SourceLocation StartLoc,
 2206                               SourceLocation NameLoc, IdentifierInfo *Name,
 2210                                  SourceLocation EqualLoc,
 2213                                          SourceLocation EqualLoc,
 2214                                          SourceLocation ArgLoc);
 2215   void ActOnParamDefaultArgumentError(Decl *param, SourceLocation EqualLoc);
 2217                                SourceLocation EqualLoc);
 2246   void checkNonTrivialCUnionInInitializer(const Expr *Init, SourceLocation Loc);
 2257   void checkNonTrivialCUnion(QualType QT, SourceLocation Loc,
 2265   void ActOnPureSpecifier(Decl *D, SourceLocation PureSpecLoc);
 2267   StmtResult ActOnCXXForRangeIdentifier(Scope *S, SourceLocation IdentLoc,
 2270                                         SourceLocation AttrEnd);
 2271   void SetDeclDeleted(Decl *dcl, SourceLocation DelLoc);
 2272   void SetDeclDefaulted(Decl *dcl, SourceLocation DefaultLoc);
 2285                                        SourceLocation LocAfterDecls);
 2341                               SourceLocation AsmLoc,
 2342                               SourceLocation RParenLoc);
 2346                               SourceLocation SemiLoc);
 2355   DeclGroupPtrTy ActOnModuleDecl(SourceLocation StartLoc,
 2356                                  SourceLocation ModuleLoc, ModuleDeclKind MDK,
 2362   DeclGroupPtrTy ActOnGlobalModuleFragmentDecl(SourceLocation ModuleLoc);
 2368   DeclGroupPtrTy ActOnPrivateModuleFragmentDecl(SourceLocation ModuleLoc,
 2369                                                 SourceLocation PrivateLoc);
 2378   DeclResult ActOnModuleImport(SourceLocation StartLoc,
 2379                                SourceLocation ExportLoc,
 2380                                SourceLocation ImportLoc, ModuleIdPath Path);
 2381   DeclResult ActOnModuleImport(SourceLocation StartLoc,
 2382                                SourceLocation ExportLoc,
 2383                                SourceLocation ImportLoc, Module *M,
 2388   void ActOnModuleInclude(SourceLocation DirectiveLoc, Module *Mod);
 2389   void BuildModuleInclude(SourceLocation DirectiveLoc, Module *Mod);
 2392   void ActOnModuleBegin(SourceLocation DirectiveLoc, Module *Mod);
 2394   void ActOnModuleEnd(SourceLocation DirectiveLoc, Module *Mod);
 2402   void createImplicitModuleImportForErrorRecovery(SourceLocation Loc,
 2417   void diagnoseMissingImport(SourceLocation Loc, NamedDecl *Decl,
 2419   void diagnoseMissingImport(SourceLocation Loc, NamedDecl *Decl,
 2420                              SourceLocation DeclLoc, ArrayRef<Module *> Modules,
 2423   Decl *ActOnStartExportDecl(Scope *S, SourceLocation ExportLoc,
 2424                              SourceLocation LBraceLoc);
 2426                               SourceLocation RBraceLoc);
 2431   void checkSpecializationVisibility(SourceLocation Loc, NamedDecl *Spec);
 2436   void checkPartialSpecializationVisibility(SourceLocation Loc,
 2449   void ActOnPopScope(SourceLocation Loc, Scope *S);
 2487                                     SourceLocation NewTagLoc,
 2498                  SourceLocation KWLoc, CXXScopeSpec &SS, IdentifierInfo *Name,
 2499                  SourceLocation NameLoc, const ParsedAttributesView &Attr,
 2500                  AccessSpecifier AS, SourceLocation ModulePrivateLoc,
 2502                  bool &IsDependent, SourceLocation ScopedEnumKWLoc,
 2507   Decl *ActOnTemplatedFriendTag(Scope *S, SourceLocation FriendLoc,
 2508                                 unsigned TagSpec, SourceLocation TagLoc,
 2510                                 SourceLocation NameLoc,
 2519                                SourceLocation TagLoc,
 2520                                SourceLocation NameLoc);
 2522   void ActOnDefs(Scope *S, Decl *TagD, SourceLocation DeclStart,
 2525   Decl *ActOnField(Scope *S, Decl *TagD, SourceLocation DeclStart,
 2528   FieldDecl *HandleField(Scope *S, RecordDecl *TagD, SourceLocation DeclStart,
 2533                                    SourceLocation DeclStart, Declarator &D,
 2541                             RecordDecl *Record, SourceLocation Loc,
 2544                             SourceLocation TSSL,
 2608   void ActOnLastBitfield(SourceLocation DeclStart,
 2610   Decl *ActOnIvar(Scope *S, SourceLocation DeclStart,
 2615   void ActOnFields(Scope *S, SourceLocation RecLoc, Decl *TagDecl,
 2616                    ArrayRef<Decl *> Fields, SourceLocation LBrac,
 2617                    SourceLocation RBrac, const ParsedAttributesView &AttrList);
 2641                                        SourceLocation FinalLoc,
 2643                                        SourceLocation LBraceLoc);
 2667                                       SourceLocation IdLoc,
 2671   bool CheckEnumRedeclaration(SourceLocation EnumLoc, bool IsScoped,
 2678                                       SourceLocation IILoc);
 2681                           SourceLocation IdLoc, IdentifierInfo *Id,
 2683                           SourceLocation EqualLoc, Expr *Val);
 2684   void ActOnEnumBody(SourceLocation EnumLoc, SourceRange BraceRange,
 2841   void notePreviousDefinition(const NamedDecl *Old, SourceLocation New);
 2938                                        SourceLocation EqualLoc,
 2987     diagnoseNoMatch(Sema &S, SourceLocation Loc, QualType T) = 0;
 2991     diagnoseIncomplete(Sema &S, SourceLocation Loc, QualType T) = 0;
 2996         Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) = 0;
 3005     diagnoseAmbiguous(Sema &S, SourceLocation Loc, QualType T) = 0;
 3014         Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) = 0;
 3032     diagnoseNoMatch(Sema &S, SourceLocation Loc, QualType T) override {
 3039     diagnoseNotInt(Sema &S, SourceLocation Loc, QualType T) = 0;
 3044       SourceLocation Loc, Expr *FromE, ContextualImplicitConverter &Converter);
 3159                                    SourceLocation OpLoc, ArrayRef<Expr *> Args,
 3167                                     SourceLocation OpLoc, ArrayRef<Expr *> Args,
 3170                                             SourceLocation Loc,
 3206                                            SourceLocation Loc);
 3216                                              SourceLocation Loc);
 3224                                          SourceLocation Loc = SourceLocation());
 3282   ForRangeStatus BuildForRangeBeginEndCall(SourceLocation Loc,
 3283                                            SourceLocation RangeLoc,
 3291                                      SourceLocation LParenLoc,
 3293                                      SourceLocation RParenLoc,
 3299                               MultiExprArg Args, SourceLocation RParenLoc,
 3303   ExprResult CreateOverloadedUnaryOp(SourceLocation OpLoc,
 3308   ExprResult CreateOverloadedBinOp(SourceLocation OpLoc,
 3315   ExprResult CreateOverloadedArraySubscriptExpr(SourceLocation LLoc,
 3316                                                 SourceLocation RLoc,
 3321                             SourceLocation LParenLoc,
 3323                             SourceLocation RParenLoc);
 3325   BuildCallToObjectOfClassType(Scope *S, Expr *Object, SourceLocation LParenLoc,
 3327                                SourceLocation RParenLoc);
 3330                                       SourceLocation OpLoc,
 3336   bool CheckCallReturnType(QualType ReturnType, SourceLocation Loc,
 3537                               SourceLocation Loc,
 3551   ObjCProtocolDecl *LookupProtocol(IdentifierInfo *II, SourceLocation IdLoc,
 3560   LabelDecl *LookupOrCreateLabel(IdentifierInfo *II, SourceLocation IdentLoc,
 3561                                  SourceLocation GnuLabelLoc = SourceLocation());
 3597   void ArgumentDependentLookup(DeclarationName Name, SourceLocation Loc,
 3684   void FindAssociatedClassesAndNamespaces(SourceLocation InstantiationLoc,
 3698                                           SourceLocation IdLoc,
 3702                                  SourceLocation Loc);
 3703   NamedDecl *ImplicitlyDefineFunction(SourceLocation Loc, IdentifierInfo &II,
 3735                                       SourceLocation *ArgLocation = nullptr);
 3736   bool checkSectionName(SourceLocation LiteralLoc, StringRef Str);
 3737   bool checkTargetAttr(SourceLocation LiteralLoc, StringRef Str);
 3748                               SourceLocation Loc);
 3784                                 SourceLocation Loc);
 3805                                    SourceLocation AtEnd);
 3806   void DefaultSynthesizeProperties(Scope *S, Decl *D, SourceLocation AtEnd);
 3828                       SourceLocation AtLoc,
 3829                       SourceLocation LParenLoc,
 3832                       SourceLocation GetterNameLoc,
 3834                       SourceLocation SetterNameLoc,
 3846                                        SourceLocation AtLoc,
 3847                                        SourceLocation LParenLoc,
 3850                                        SourceLocation GetterNameLoc,
 3852                                        SourceLocation SetterNameLoc,
 3948   TypoCorrection FailedCorrection(IdentifierInfo *Typo, SourceLocation TypoLoc,
 4031   FullExprArg MakeFullExpr(Expr *Arg, SourceLocation CC) {
 4045   StmtResult ActOnNullStmt(SourceLocation SemiLoc,
 4050   StmtResult ActOnCompoundStmt(SourceLocation L, SourceLocation R,
 4050   StmtResult ActOnCompoundStmt(SourceLocation L, SourceLocation R,
 4081                                    SourceLocation StartLoc,
 4082                                    SourceLocation EndLoc);
 4085   ExprResult ActOnCaseExpr(SourceLocation CaseLoc, ExprResult Val);
 4086   StmtResult ActOnCaseStmt(SourceLocation CaseLoc, ExprResult LHS,
 4087                            SourceLocation DotDotDotLoc, ExprResult RHS,
 4088                            SourceLocation ColonLoc);
 4091   StmtResult ActOnDefaultStmt(SourceLocation DefaultLoc,
 4092                                       SourceLocation ColonLoc,
 4094   StmtResult ActOnLabelStmt(SourceLocation IdentLoc, LabelDecl *TheDecl,
 4095                             SourceLocation ColonLoc, Stmt *SubStmt);
 4097   StmtResult ActOnAttributedStmt(SourceLocation AttrLoc,
 4102   StmtResult ActOnIfStmt(SourceLocation IfLoc, bool IsConstexpr,
 4105                          SourceLocation ElseLoc, Stmt *ElseVal);
 4106   StmtResult BuildIfStmt(SourceLocation IfLoc, bool IsConstexpr,
 4109                          SourceLocation ElseLoc, Stmt *ElseVal);
 4110   StmtResult ActOnStartOfSwitchStmt(SourceLocation SwitchLoc,
 4113   StmtResult ActOnFinishSwitchStmt(SourceLocation SwitchLoc,
 4115   StmtResult ActOnWhileStmt(SourceLocation WhileLoc, ConditionResult Cond,
 4117   StmtResult ActOnDoStmt(SourceLocation DoLoc, Stmt *Body,
 4118                          SourceLocation WhileLoc, SourceLocation CondLParen,
 4118                          SourceLocation WhileLoc, SourceLocation CondLParen,
 4119                          Expr *Cond, SourceLocation CondRParen);
 4121   StmtResult ActOnForStmt(SourceLocation ForLoc,
 4122                           SourceLocation LParenLoc,
 4126                           SourceLocation RParenLoc,
 4128   ExprResult CheckObjCForCollectionOperand(SourceLocation forLoc,
 4130   StmtResult ActOnObjCForCollectionStmt(SourceLocation ForColLoc,
 4132                                         SourceLocation RParenLoc);
 4146   StmtResult ActOnCXXForRangeStmt(Scope *S, SourceLocation ForLoc,
 4147                                   SourceLocation CoawaitLoc,
 4150                                   SourceLocation ColonLoc, Expr *Collection,
 4151                                   SourceLocation RParenLoc,
 4153   StmtResult BuildCXXForRangeStmt(SourceLocation ForLoc,
 4154                                   SourceLocation CoawaitLoc,
 4156                                   SourceLocation ColonLoc,
 4160                                   SourceLocation RParenLoc,
 4164   StmtResult ActOnGotoStmt(SourceLocation GotoLoc,
 4165                            SourceLocation LabelLoc,
 4167   StmtResult ActOnIndirectGotoStmt(SourceLocation GotoLoc,
 4168                                    SourceLocation StarLoc,
 4170   StmtResult ActOnContinueStmt(SourceLocation ContinueLoc, Scope *CurScope);
 4171   StmtResult ActOnBreakStmt(SourceLocation BreakLoc, Scope *CurScope);
 4173   void ActOnCapturedRegionStart(SourceLocation Loc, Scope *CurScope,
 4176   void ActOnCapturedRegionStart(SourceLocation Loc, Scope *CurScope,
 4183                                            SourceLocation Loc,
 4202   StmtResult ActOnReturnStmt(SourceLocation ReturnLoc, Expr *RetValExp,
 4204   StmtResult BuildReturnStmt(SourceLocation ReturnLoc, Expr *RetValExp);
 4205   StmtResult ActOnCapScopeReturnStmt(SourceLocation ReturnLoc, Expr *RetValExp);
 4207   StmtResult ActOnGCCAsmStmt(SourceLocation AsmLoc, bool IsSimple,
 4213                              SourceLocation RParenLoc);
 4218                                        SourceLocation TemplateKWLoc,
 4222                             unsigned &Offset, SourceLocation AsmLoc);
 4224                                          SourceLocation AsmLoc);
 4225   StmtResult ActOnMSAsmStmt(SourceLocation AsmLoc, SourceLocation LBraceLoc,
 4225   StmtResult ActOnMSAsmStmt(SourceLocation AsmLoc, SourceLocation LBraceLoc,
 4232                             SourceLocation EndLoc);
 4234                                    SourceLocation Location,
 4238                                   SourceLocation StartLoc,
 4239                                   SourceLocation IdLoc, IdentifierInfo *Id,
 4244   StmtResult ActOnObjCAtCatchStmt(SourceLocation AtLoc, SourceLocation RParen,
 4244   StmtResult ActOnObjCAtCatchStmt(SourceLocation AtLoc, SourceLocation RParen,
 4247   StmtResult ActOnObjCAtFinallyStmt(SourceLocation AtLoc, Stmt *Body);
 4249   StmtResult ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try,
 4252   StmtResult BuildObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw);
 4253   StmtResult ActOnObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw,
 4255   ExprResult ActOnObjCAtSynchronizedOperand(SourceLocation atLoc,
 4257   StmtResult ActOnObjCAtSynchronizedStmt(SourceLocation AtLoc,
 4261   StmtResult ActOnObjCAutoreleasePoolStmt(SourceLocation AtLoc, Stmt *Body);
 4264                                      SourceLocation StartLoc,
 4265                                      SourceLocation IdLoc,
 4270   StmtResult ActOnCXXCatchBlock(SourceLocation CatchLoc,
 4272   StmtResult ActOnCXXTryBlock(SourceLocation TryLoc, Stmt *TryBlock,
 4276                               SourceLocation TryLoc, Stmt *TryBlock,
 4278   StmtResult ActOnSEHExceptBlock(SourceLocation Loc,
 4283   StmtResult ActOnFinishSEHFinallyBlock(SourceLocation Loc, Stmt *Block);
 4284   StmtResult ActOnSEHLeaveStmt(SourceLocation Loc, Scope *CurScope);
 4306   void DiagnoseEmptyStmtBody(SourceLocation StmtLoc,
 4317                         SourceLocation OpLoc);
 4322                                            SourceLocation Loc);
 4342   void DiagnoseAvailabilityOfDecl(NamedDecl *D, ArrayRef<SourceLocation> Locs,
 4348   bool makeUnavailableInSystemHeader(SourceLocation loc,
 4358   bool DiagnoseUseOfDecl(NamedDecl *D, ArrayRef<SourceLocation> Locs,
 4367                                         SourceLocation Loc);
 4368   void DiagnoseSentinelCalls(NamedDecl *D, SourceLocation Loc,
 4404   void MarkAnyDeclReferenced(SourceLocation Loc, Decl *D, bool MightBeOdrUse);
 4405   void MarkFunctionReferenced(SourceLocation Loc, FunctionDecl *Func,
 4407   void MarkVariableReferenced(SourceLocation Loc, VarDecl *Var);
 4411   void MarkCaptureUsedInEnclosingContext(VarDecl *Capture, SourceLocation Loc,
 4454   bool tryCaptureVariable(VarDecl *Var, SourceLocation Loc, TryCaptureKind Kind,
 4455                           SourceLocation EllipsisLoc, bool BuildAndDiagnose,
 4461   bool tryCaptureVariable(VarDecl *Var, SourceLocation Loc,
 4463                           SourceLocation EllipsisLoc = SourceLocation());
 4466   bool NeedToCaptureVariable(VarDecl *Var, SourceLocation Loc);
 4470   QualType getCapturedDeclRefType(VarDecl *Var, SourceLocation Loc);
 4475   void MarkDeclarationsReferencedInType(SourceLocation Loc, QualType T);
 4497   bool DiagRuntimeBehavior(SourceLocation Loc, const Stmt *Statement,
 4501   bool DiagRuntimeBehavior(SourceLocation Loc, ArrayRef<const Stmt*> Stmts,
 4508       Scope *S, CXXScopeSpec &SS, SourceLocation TemplateKWLoc,
 4526   ExprResult BuildIvarRefExpr(Scope *S, SourceLocation Loc, ObjCIvarDecl *IV);
 4533                                         SourceLocation TemplateKWLoc,
 4543                                 SourceLocation Loc,
 4550                    SourceLocation TemplateKWLoc = SourceLocation(),
 4557                    SourceLocation TemplateKWLoc = SourceLocation(),
 4563       SourceLocation nameLoc,
 4567       SourceLocation opLoc = SourceLocation());
 4570                                              SourceLocation TemplateKWLoc,
 4575                                      SourceLocation TemplateKWLoc,
 4591                                        SourceLocation TemplateKWLoc,
 4608                       SourceLocation LitEndLoc,
 4611   ExprResult BuildPredefinedExpr(SourceLocation Loc,
 4613   ExprResult ActOnPredefinedExpr(SourceLocation Loc, tok::TokenKind Kind);
 4614   ExprResult ActOnIntegerConstant(SourceLocation Loc, uint64_t Val);
 4616   bool CheckLoopHintExpr(Expr *E, SourceLocation Loc);
 4621   ExprResult ActOnParenExpr(SourceLocation L, SourceLocation R, Expr *E);
 4621   ExprResult ActOnParenExpr(SourceLocation L, SourceLocation R, Expr *E);
 4622   ExprResult ActOnParenListExpr(SourceLocation L,
 4623                                 SourceLocation R,
 4631   ExprResult ActOnGenericSelectionExpr(SourceLocation KeyLoc,
 4632                                        SourceLocation DefaultLoc,
 4633                                        SourceLocation RParenLoc,
 4637   ExprResult CreateGenericSelectionExpr(SourceLocation KeyLoc,
 4638                                         SourceLocation DefaultLoc,
 4639                                         SourceLocation RParenLoc,
 4645   ExprResult CreateBuiltinUnaryOp(SourceLocation OpLoc, UnaryOperatorKind Opc,
 4647   ExprResult BuildUnaryOp(Scope *S, SourceLocation OpLoc,
 4649   ExprResult ActOnUnaryOp(Scope *S, SourceLocation OpLoc,
 4653   QualType CheckAddressOfOperand(ExprResult &Operand, SourceLocation OpLoc);
 4656                                             SourceLocation OpLoc,
 4659   ExprResult CreateUnaryExprOrTypeTraitExpr(Expr *E, SourceLocation OpLoc,
 4662     ActOnUnaryExprOrTypeTraitExpr(SourceLocation OpLoc,
 4671   bool CheckUnaryExprOrTypeTraitOperand(QualType ExprType, SourceLocation OpLoc,
 4675                                           SourceLocation OpLoc,
 4677                                           SourceLocation NameLoc,
 4678                                           SourceLocation RParenLoc);
 4679   ExprResult ActOnPostfixUnaryOp(Scope *S, SourceLocation OpLoc,
 4682   ExprResult ActOnArraySubscriptExpr(Scope *S, Expr *Base, SourceLocation LLoc,
 4683                                      Expr *Idx, SourceLocation RLoc);
 4684   ExprResult CreateBuiltinArraySubscriptExpr(Expr *Base, SourceLocation LLoc,
 4685                                              Expr *Idx, SourceLocation RLoc);
 4686   ExprResult ActOnOMPArraySectionExpr(Expr *Base, SourceLocation LBLoc,
 4687                                       Expr *LowerBound, SourceLocation ColonLoc,
 4688                                       Expr *Length, SourceLocation RBLoc);
 4702       Expr *Base, QualType BaseType, SourceLocation OpLoc, bool IsArrow,
 4703       CXXScopeSpec &SS, SourceLocation TemplateKWLoc,
 4710   BuildMemberReferenceExpr(Expr *Base, QualType BaseType, SourceLocation OpLoc,
 4712                            SourceLocation TemplateKWLoc,
 4720                                      SourceLocation OpLoc,
 4732                                       bool IsArrow, SourceLocation OpLoc,
 4734                                       SourceLocation TemplateKWLoc,
 4740                                    SourceLocation OpLoc,
 4743                                    SourceLocation TemplateKWLoc,
 4748   BuildMemberExpr(Expr *Base, bool IsArrow, SourceLocation OpLoc,
 4749                   const CXXScopeSpec *SS, SourceLocation TemplateKWLoc,
 4756   BuildMemberExpr(Expr *Base, bool IsArrow, SourceLocation OpLoc,
 4757                   NestedNameSpecifierLoc NNS, SourceLocation TemplateKWLoc,
 4769                                SourceLocation RParenLoc,
 4771   void CheckStaticArrayArgument(SourceLocation CallLoc,
 4778   ExprResult ActOnCallExpr(Scope *S, Expr *Fn, SourceLocation LParenLoc,
 4779                            MultiExprArg ArgExprs, SourceLocation RParenLoc,
 4781   ExprResult BuildCallExpr(Scope *S, Expr *Fn, SourceLocation LParenLoc,
 4782                            MultiExprArg ArgExprs, SourceLocation RParenLoc,
 4788                   SourceLocation RParenLoc, MultiExprArg Args,
 4792   BuildResolvedCallExpr(Expr *Fn, NamedDecl *NDecl, SourceLocation LParenLoc,
 4793                         ArrayRef<Expr *> Arg, SourceLocation RParenLoc,
 4797   ExprResult ActOnCUDAExecConfigExpr(Scope *S, SourceLocation LLLLoc,
 4799                                      SourceLocation GGGLoc);
 4801   ExprResult ActOnCastExpr(Scope *S, SourceLocation LParenLoc,
 4803                            SourceLocation RParenLoc, Expr *CastExpr);
 4804   ExprResult BuildCStyleCastExpr(SourceLocation LParenLoc,
 4806                                  SourceLocation RParenLoc,
 4811   ExprResult BuildVectorLiteral(SourceLocation LParenLoc,
 4812                                 SourceLocation RParenLoc, Expr *E,
 4817   ExprResult ActOnCompoundLiteral(SourceLocation LParenLoc,
 4819                                   SourceLocation RParenLoc,
 4822   ExprResult BuildCompoundLiteralExpr(SourceLocation LParenLoc,
 4824                                       SourceLocation RParenLoc,
 4827   ExprResult ActOnInitList(SourceLocation LBraceLoc,
 4829                            SourceLocation RBraceLoc);
 4831   ExprResult BuildInitList(SourceLocation LBraceLoc,
 4833                            SourceLocation RBraceLoc);
 4836                                         SourceLocation EqualOrColonLoc,
 4844   ExprResult ActOnBinOp(Scope *S, SourceLocation TokLoc,
 4846   ExprResult BuildBinOp(Scope *S, SourceLocation OpLoc,
 4848   ExprResult CreateBuiltinBinOp(SourceLocation OpLoc, BinaryOperatorKind Opc,
 4851   void DiagnoseCommaOperator(const Expr *LHS, SourceLocation Loc);
 4855   ExprResult ActOnConditionalOp(SourceLocation QuestionLoc,
 4856                                 SourceLocation ColonLoc,
 4860   ExprResult ActOnAddrLabel(SourceLocation OpLoc, SourceLocation LabLoc,
 4860   ExprResult ActOnAddrLabel(SourceLocation OpLoc, SourceLocation LabLoc,
 4864   ExprResult ActOnStmtExpr(SourceLocation LPLoc, Stmt *SubStmt,
 4865                            SourceLocation RPLoc); // "({..})"
 4872     SourceLocation LocStart, LocEnd;
 4881   ExprResult BuildBuiltinOffsetOf(SourceLocation BuiltinLoc,
 4884                                   SourceLocation RParenLoc);
 4886                                   SourceLocation BuiltinLoc,
 4887                                   SourceLocation TypeLoc,
 4890                                   SourceLocation RParenLoc);
 4893   ExprResult ActOnChooseExpr(SourceLocation BuiltinLoc,
 4895                              Expr *RHSExpr, SourceLocation RPLoc);
 4898   ExprResult ActOnVAArg(SourceLocation BuiltinLoc, Expr *E, ParsedType Ty,
 4899                         SourceLocation RPLoc);
 4900   ExprResult BuildVAArgExpr(SourceLocation BuiltinLoc, Expr *E,
 4901                             TypeSourceInfo *TInfo, SourceLocation RPLoc);
 4906                                 SourceLocation BuiltinLoc,
 4907                                 SourceLocation RPLoc);
 4911                                 SourceLocation BuiltinLoc, SourceLocation RPLoc,
 4911                                 SourceLocation BuiltinLoc, SourceLocation RPLoc,
 4915   ExprResult ActOnGNUNullExpr(SourceLocation TokenLoc);
 4940   CheckMicrosoftIfExistsSymbol(Scope *S, SourceLocation KeywordLoc,
 4944   StmtResult BuildMSDependentExistsStmt(SourceLocation KeywordLoc,
 4949   StmtResult ActOnMSDependentExistsStmt(SourceLocation KeywordLoc,
 4958   void ActOnBlockStart(SourceLocation CaretLoc, Scope *CurScope);
 4962   void ActOnBlockArguments(SourceLocation CaretLoc, Declarator &ParamInfo,
 4967   void ActOnBlockError(SourceLocation CaretLoc, Scope *CurScope);
 4971   ExprResult ActOnBlockStmtExpr(SourceLocation CaretLoc, Stmt *Body,
 4978                                     SourceLocation BuiltinLoc,
 4979                                     SourceLocation RParenLoc);
 4985                              SourceLocation BuiltinLoc,
 4986                              SourceLocation RParenLoc);
 4991   Decl *ActOnStartNamespaceDef(Scope *S, SourceLocation InlineLoc,
 4992                                SourceLocation NamespaceLoc,
 4993                                SourceLocation IdentLoc, IdentifierInfo *Ident,
 4994                                SourceLocation LBrace,
 4997   void ActOnFinishNamespaceDef(Decl *Dcl, SourceLocation RBrace);
 5026                                        SourceLocation Loc);
 5036   QualType BuildStdInitializerList(QualType Element, SourceLocation Loc);
 5042   Decl *ActOnUsingDirective(Scope *CurScope, SourceLocation UsingLoc,
 5043                             SourceLocation NamespcLoc, CXXScopeSpec &SS,
 5044                             SourceLocation IdentLoc,
 5051                                SourceLocation NamespaceLoc,
 5052                                SourceLocation AliasLoc,
 5055                                SourceLocation IdentLoc,
 5066   bool CheckUsingDeclRedeclaration(SourceLocation UsingLoc,
 5069                                    SourceLocation NameLoc,
 5071   bool CheckUsingDeclQualifier(SourceLocation UsingLoc,
 5075                                SourceLocation NameLoc);
 5078       Scope *S, AccessSpecifier AS, SourceLocation UsingLoc,
 5079       bool HasTypenameKeyword, SourceLocation TypenameLoc, CXXScopeSpec &SS,
 5080       DeclarationNameInfo NameInfo, SourceLocation EllipsisLoc,
 5091   findInheritingConstructor(SourceLocation Loc, CXXConstructorDecl *BaseCtor,
 5095                               SourceLocation UsingLoc,
 5096                               SourceLocation TypenameLoc, CXXScopeSpec &SS,
 5097                               UnqualifiedId &Name, SourceLocation EllipsisLoc,
 5101                               SourceLocation UsingLoc, UnqualifiedId &Name,
 5110   BuildCXXConstructExpr(SourceLocation ConstructLoc, QualType DeclInitType,
 5121   BuildCXXConstructExpr(SourceLocation ConstructLoc, QualType DeclInitType,
 5132   BuildCXXConstructExpr(SourceLocation ConstructLoc, QualType DeclInitType,
 5140   ExprResult BuildCXXDefaultInitExpr(SourceLocation Loc, FieldDecl *Field);
 5145   bool CheckCXXDefaultArgExpr(SourceLocation CallLoc, FunctionDecl *FD,
 5150   ExprResult BuildCXXDefaultArgExpr(SourceLocation CallLoc,
 5199     void CalledDecl(SourceLocation CallLoc, const CXXMethodDecl *Method);
 5226   ComputeDefaultedDefaultCtorExceptionSpec(SourceLocation Loc,
 5259   ComputeInheritingCtorExceptionSpec(SourceLocation Loc,
 5264   void EvaluateImplicitExceptionSpec(SourceLocation Loc, CXXMethodDecl *MD);
 5268   ExprResult ActOnNoexceptSpec(SourceLocation NoexceptLoc, Expr *NoexceptExpr,
 5314   void DefineImplicitDefaultConstructor(SourceLocation CurrentLocation,
 5327   void DefineImplicitDestructor(SourceLocation CurrentLocation,
 5337   void DefineInheritingConstructor(SourceLocation UseLoc,
 5350   void DefineImplicitCopyConstructor(SourceLocation CurrentLocation,
 5364   void DefineImplicitMoveConstructor(SourceLocation CurrentLocation,
 5376   void DefineImplicitCopyAssignment(SourceLocation CurrentLocation,
 5389   void DefineImplicitMoveAssignment(SourceLocation CurrentLocation,
 5426                                SourceLocation Loc,
 5432                                           SourceLocation NameLoc,
 5435   ParsedType getConstructorName(IdentifierInfo &II, SourceLocation NameLoc,
 5438   ParsedType getDestructorName(SourceLocation TildeLoc,
 5439                                IdentifierInfo &II, SourceLocation NameLoc,
 5452   ExprResult ActOnCXXNamedCast(SourceLocation OpLoc,
 5454                                SourceLocation LAngleBracketLoc,
 5456                                SourceLocation RAngleBracketLoc,
 5457                                SourceLocation LParenLoc,
 5459                                SourceLocation RParenLoc);
 5461   ExprResult BuildCXXNamedCast(SourceLocation OpLoc,
 5468   ExprResult ActOnBuiltinBitCastExpr(SourceLocation KWLoc, Declarator &Dcl,
 5470                                      SourceLocation RParenLoc);
 5472   ExprResult BuildBuiltinBitCastExpr(SourceLocation KWLoc, TypeSourceInfo *TSI,
 5473                                      Expr *Operand, SourceLocation RParenLoc);
 5476                             SourceLocation TypeidLoc,
 5478                             SourceLocation RParenLoc);
 5480                             SourceLocation TypeidLoc,
 5482                             SourceLocation RParenLoc);
 5485   ExprResult ActOnCXXTypeid(SourceLocation OpLoc,
 5486                             SourceLocation LParenLoc, bool isType,
 5488                             SourceLocation RParenLoc);
 5491                             SourceLocation TypeidLoc,
 5493                             SourceLocation RParenLoc);
 5495                             SourceLocation TypeidLoc,
 5497                             SourceLocation RParenLoc);
 5500   ExprResult ActOnCXXUuidof(SourceLocation OpLoc,
 5501                             SourceLocation LParenLoc, bool isType,
 5503                             SourceLocation RParenLoc);
 5506   ExprResult ActOnCXXFoldExpr(SourceLocation LParenLoc, Expr *LHS,
 5508                               SourceLocation EllipsisLoc, Expr *RHS,
 5509                               SourceLocation RParenLoc);
 5510   ExprResult BuildCXXFoldExpr(SourceLocation LParenLoc, Expr *LHS,
 5512                               SourceLocation EllipsisLoc, Expr *RHS,
 5513                               SourceLocation RParenLoc,
 5515   ExprResult BuildEmptyCXXFoldExpr(SourceLocation EllipsisLoc,
 5519   ExprResult ActOnCXXThis(SourceLocation loc);
 5522   Expr *BuildCXXThisExpr(SourceLocation Loc, QualType Type, bool IsImplicit);
 5568   bool CheckCXXThisCapture(SourceLocation Loc, bool Explicit = false,
 5579   ExprResult ActOnCXXBoolLiteral(SourceLocation OpLoc, tok::TokenKind Kind);
 5583   ExprResult ActOnObjCBoolLiteral(SourceLocation OpLoc, tok::TokenKind Kind);
 5587                                  SourceLocation AtLoc, SourceLocation RParen);
 5587                                  SourceLocation AtLoc, SourceLocation RParen);
 5590   ExprResult ActOnCXXNullPtrLiteral(SourceLocation Loc);
 5593   ExprResult ActOnCXXThrow(Scope *S, SourceLocation OpLoc, Expr *expr);
 5594   ExprResult BuildCXXThrow(SourceLocation OpLoc, Expr *Ex,
 5596   bool CheckCXXThrowOperand(SourceLocation ThrowLoc, QualType ThrowTy, Expr *E);
 5603                                        SourceLocation LParenOrBraceLoc,
 5605                                        SourceLocation RParenOrBraceLoc,
 5609                                        SourceLocation LParenLoc,
 5611                                        SourceLocation RParenLoc,
 5615   ExprResult ActOnCXXNew(SourceLocation StartLoc, bool UseGlobal,
 5616                          SourceLocation PlacementLParen,
 5618                          SourceLocation PlacementRParen,
 5622                          SourceLocation PlacementLParen,
 5624                          SourceLocation PlacementRParen,
 5639                                             SourceLocation Loc);
 5641   bool CheckAllocatedType(QualType AllocType, SourceLocation Loc,
 5658   bool FindAllocationFunctions(SourceLocation StartLoc, SourceRange Range,
 5670   bool FindDeallocationFunction(SourceLocation StartLoc, CXXRecordDecl *RD,
 5673   FunctionDecl *FindUsualDeallocationFunction(SourceLocation StartLoc,
 5677   FunctionDecl *FindDeallocationFunctionForDestructor(SourceLocation StartLoc,
 5681   ExprResult ActOnCXXDelete(SourceLocation StartLoc,
 5684   void CheckVirtualDtorCall(CXXDestructorDecl *dtor, SourceLocation Loc,
 5687                             SourceLocation DtorLoc);
 5689   ExprResult ActOnNoexceptExpr(SourceLocation KeyLoc, SourceLocation LParen,
 5689   ExprResult ActOnNoexceptExpr(SourceLocation KeyLoc, SourceLocation LParen,
 5690                                Expr *Operand, SourceLocation RParen);
 5691   ExprResult BuildCXXNoexceptExpr(SourceLocation KeyLoc, Expr *Operand,
 5692                                   SourceLocation RParen);
 5695   ExprResult ActOnTypeTrait(TypeTrait Kind, SourceLocation KWLoc,
 5697                             SourceLocation RParenLoc);
 5698   ExprResult BuildTypeTrait(TypeTrait Kind, SourceLocation KWLoc,
 5700                             SourceLocation RParenLoc);
 5705                                  SourceLocation KWLoc,
 5708                                  SourceLocation RParen);
 5711                                  SourceLocation KWLoc,
 5714                                  SourceLocation RParen);
 5719                                   SourceLocation KWLoc,
 5721                                   SourceLocation RParen);
 5724                                   SourceLocation KWLoc,
 5726                                   SourceLocation RParen);
 5730                                           SourceLocation OpLoc,
 5736                                        SourceLocation OpLoc,
 5740                                        SourceLocation CCLoc,
 5741                                        SourceLocation TildeLoc,
 5745                                        SourceLocation OpLoc,
 5749                                        SourceLocation CCLoc,
 5750                                        SourceLocation TildeLoc,
 5754                                        SourceLocation OpLoc,
 5756                                        SourceLocation TildeLoc,
 5774   ExprResult ActOnFinishFullExpr(Expr *Expr, SourceLocation CC,
 5795   bool ActOnCXXGlobalScopeSpecifier(SourceLocation CCLoc, CXXScopeSpec &SS);
 5807   bool ActOnSuperScopeSpecifier(SourceLocation SuperLoc,
 5808                                 SourceLocation ColonColonLoc, CXXScopeSpec &SS);
 5825     SourceLocation IdentifierLoc;
 5828     SourceLocation CCLoc;
 5831     NestedNameSpecInfo(IdentifierInfo *II, SourceLocation IdLoc,
 5832              SourceLocation ColonColonLoc, ParsedType ObjectType = ParsedType())
 5837     NestedNameSpecInfo(IdentifierInfo *II, SourceLocation IdLoc,
 5838                        SourceLocation ColonColonLoc, QualType ObjectType)
 5893                                            SourceLocation ColonColonLoc);
 5924                                    SourceLocation TemplateKWLoc,
 5926                                    SourceLocation TemplateNameLoc,
 5927                                    SourceLocation LAngleLoc,
 5929                                    SourceLocation RAngleLoc,
 5930                                    SourceLocation CCLoc,
 5995                                        SourceLocation EndLoc,
 6009                         SourceLocation CaptureDefaultLoc,
 6018       SourceLocation Loc, bool ByRef, SourceLocation EllipsisLoc,
 6018       SourceLocation Loc, bool ByRef, SourceLocation EllipsisLoc,
 6025       SourceLocation Loc, bool ByRef, SourceLocation EllipsisLoc,
 6025       SourceLocation Loc, bool ByRef, SourceLocation EllipsisLoc,
 6034   VarDecl *createLambdaInitCaptureVarDecl(SourceLocation Loc,
 6036                                           SourceLocation EllipsisLoc,
 6049   void ActOnLambdaExplicitTemplateParameterList(SourceLocation LAngleLoc,
 6051                                                 SourceLocation RAngleLoc);
 6071   void ActOnLambdaError(SourceLocation StartLoc, Scope *CurScope,
 6076   ExprResult ActOnLambdaExpr(SourceLocation StartLoc, Stmt *Body,
 6092                               SourceLocation ImplicitCaptureLoc,
 6097   ExprResult BuildLambdaExpr(SourceLocation StartLoc, SourceLocation EndLoc,
 6097   ExprResult BuildLambdaExpr(SourceLocation StartLoc, SourceLocation EndLoc,
 6113          SourceLocation CurrentLoc, CXXConversionDecl *Conv);
 6122   void DefineImplicitLambdaToBlockPointerConversion(SourceLocation CurrentLoc,
 6125   ExprResult BuildBlockForLambdaConversion(SourceLocation CurrentLocation,
 6126                                            SourceLocation ConvLocation,
 6146   ExprResult ParseObjCStringLiteral(SourceLocation *AtLocs,
 6149   ExprResult BuildObjCStringLiteral(SourceLocation AtLoc, StringLiteral *S);
 6154   ExprResult BuildObjCNumericLiteral(SourceLocation AtLoc, Expr *Number);
 6155   ExprResult ActOnObjCBoolLiteral(SourceLocation AtLoc, SourceLocation ValueLoc,
 6155   ExprResult ActOnObjCBoolLiteral(SourceLocation AtLoc, SourceLocation ValueLoc,
 6166   ExprResult BuildObjCSubscriptExpression(SourceLocation RB, Expr *BaseExpr,
 6174   ExprResult BuildObjCEncodeExpression(SourceLocation AtLoc,
 6176                                   SourceLocation RParenLoc);
 6181   ExprResult ParseObjCEncodeExpression(SourceLocation AtLoc,
 6182                                        SourceLocation EncodeLoc,
 6183                                        SourceLocation LParenLoc,
 6185                                        SourceLocation RParenLoc);
 6189                                          SourceLocation AtLoc,
 6190                                          SourceLocation SelLoc,
 6191                                          SourceLocation LParenLoc,
 6192                                          SourceLocation RParenLoc,
 6197                                          SourceLocation AtLoc,
 6198                                          SourceLocation ProtoLoc,
 6199                                          SourceLocation LParenLoc,
 6200                                          SourceLocation ProtoIdLoc,
 6201                                          SourceLocation RParenLoc);
 6207                                        SourceLocation ExternLoc,
 6209                                        SourceLocation LBraceLoc);
 6212                                         SourceLocation RBraceLoc);
 6223   bool ActOnAccessSpecifier(AccessSpecifier Access, SourceLocation ASLoc,
 6224                             SourceLocation ColonLoc,
 6235                                               SourceLocation EqualLoc,
 6244                                     SourceLocation IdLoc,
 6245                                     SourceLocation LParenLoc,
 6247                                     SourceLocation RParenLoc,
 6248                                     SourceLocation EllipsisLoc);
 6256                                     SourceLocation IdLoc,
 6258                                     SourceLocation EllipsisLoc);
 6266                                     SourceLocation IdLoc,
 6268                                     SourceLocation EllipsisLoc);
 6272                                        SourceLocation IdLoc);
 6278                                      SourceLocation EllipsisLoc);
 6296   void MarkBaseAndMemberDestructorsReferenced(SourceLocation Loc,
 6302   typedef std::pair<CXXRecordDecl*, SourceLocation> VTableUse;
 6319   void MarkVTableUsed(SourceLocation Loc, CXXRecordDecl *Class,
 6324   void MarkVirtualMemberExceptionSpecsNeeded(SourceLocation Loc,
 6329   void MarkVirtualMembersReferenced(SourceLocation Loc, const CXXRecordDecl *RD,
 6342                             SourceLocation ColonLoc,
 6357       SourceLocation BaseLoc);
 6376   void ActOnFinishCXXMemberSpecification(Scope *S, SourceLocation RLoc,
 6377                                          Decl *TagDecl, SourceLocation LBrac,
 6378                                          SourceLocation RBrac,
 6396   Decl *ActOnStaticAssertDeclaration(SourceLocation StaticAssertLoc,
 6399                                      SourceLocation RParenLoc);
 6400   Decl *BuildStaticAssertDeclaration(SourceLocation StaticAssertLoc,
 6403                                      SourceLocation RParenLoc,
 6406   FriendDecl *CheckFriendTypeDecl(SourceLocation LocStart,
 6407                                   SourceLocation FriendLoc,
 6445                                        SourceLocation EllipsisLoc);
 6452                                 SourceLocation BaseLoc,
 6453                                 SourceLocation EllipsisLoc);
 6460   bool IsDerivedFrom(SourceLocation Loc, QualType Derived, QualType Base);
 6461   bool IsDerivedFrom(SourceLocation Loc, QualType Derived, QualType Base,
 6468                                     SourceLocation Loc, SourceRange Range,
 6474                                     SourceLocation Loc, SourceRange Range,
 6529   AccessResult CheckAllocationAccess(SourceLocation OperatorLoc,
 6534   AccessResult CheckConstructorAccess(SourceLocation Loc,
 6539   AccessResult CheckConstructorAccess(SourceLocation Loc,
 6544   AccessResult CheckDestructorAccess(SourceLocation Loc,
 6549   AccessResult CheckMemberAccess(SourceLocation UseLoc,
 6553   CheckStructuredBindingMemberAccess(SourceLocation UseLoc,
 6556   AccessResult CheckMemberOperatorAccess(SourceLocation Loc,
 6562   AccessResult CheckBaseClassAccess(SourceLocation AccessLoc,
 6597   bool isAbstractType(SourceLocation Loc, QualType T);
 6598   bool RequireNonAbstractType(SourceLocation Loc, QualType T,
 6601   bool RequireNonAbstractType(SourceLocation Loc, QualType T, unsigned DiagID,
 6650                           SourceLocation TemplateKWLoc = SourceLocation(),
 6669                                        SourceLocation NameLoc,
 6673                                         SourceLocation NameLoc,
 6679                             SourceLocation NameLoc,
 6683                                    SourceLocation IILoc,
 6689   bool DiagnoseUninstantiableTemplate(SourceLocation PointOfInstantiation,
 6697   void DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl);
 6701                            SourceLocation EllipsisLoc,
 6702                            SourceLocation KeyLoc,
 6704                            SourceLocation ParamNameLoc,
 6706                            SourceLocation EqualLoc,
 6710                                              SourceLocation Loc);
 6711   QualType CheckNonTypeTemplateParameterType(QualType T, SourceLocation Loc);
 6716                                       SourceLocation EqualLoc,
 6719                                        SourceLocation TmpLoc,
 6721                                        SourceLocation EllipsisLoc,
 6723                                        SourceLocation ParamNameLoc,
 6726                                        SourceLocation EqualLoc,
 6731                              SourceLocation ExportLoc,
 6732                              SourceLocation TemplateLoc,
 6733                              SourceLocation LAngleLoc,
 6735                              SourceLocation RAngleLoc,
 6755       SourceLocation DeclStartLoc, SourceLocation DeclLoc,
 6755       SourceLocation DeclStartLoc, SourceLocation DeclLoc,
 6761       Scope *S, unsigned TagSpec, TagUseKind TUK, SourceLocation KWLoc,
 6762       CXXScopeSpec &SS, IdentifierInfo *Name, SourceLocation NameLoc,
 6764       AccessSpecifier AS, SourceLocation ModulePrivateLoc,
 6765       SourceLocation FriendLoc, unsigned NumOuterTemplateParamLists,
 6771                                                     SourceLocation Loc);
 6781                                SourceLocation TemplateLoc,
 6785   ActOnTemplateIdType(Scope *S, CXXScopeSpec &SS, SourceLocation TemplateKWLoc,
 6787                       SourceLocation TemplateIILoc, SourceLocation LAngleLoc,
 6787                       SourceLocation TemplateIILoc, SourceLocation LAngleLoc,
 6788                       ASTTemplateArgsPtr TemplateArgs, SourceLocation RAngleLoc,
 6795                                     SourceLocation TagLoc,
 6797                                     SourceLocation TemplateKWLoc,
 6799                                     SourceLocation TemplateLoc,
 6800                                     SourceLocation LAngleLoc,
 6802                                     SourceLocation RAngleLoc);
 6806       SourceLocation TemplateKWLoc, TemplateParameterList *TemplateParams,
 6810                                 SourceLocation TemplateLoc,
 6811                                 SourceLocation TemplateNameLoc,
 6817                                 SourceLocation TemplateLoc,
 6822                          SourceLocation TemplateKWLoc,
 6823                          SourceLocation ConceptNameLoc, NamedDecl *FoundDecl,
 6827   void diagnoseMissingTemplateArguments(TemplateName Name, SourceLocation Loc);
 6830                                  SourceLocation TemplateKWLoc,
 6836                                           SourceLocation TemplateKWLoc,
 6841       Scope *S, CXXScopeSpec &SS, SourceLocation TemplateKWLoc,
 6846       Scope *S, unsigned TagSpec, TagUseKind TUK, SourceLocation KWLoc,
 6847       SourceLocation ModulePrivateLoc, TemplateIdAnnotation &TemplateId,
 6852   bool CheckTemplatePartialSpecializationArgs(SourceLocation Loc,
 6866   CheckSpecializationInstantiationRedecl(SourceLocation NewLoc,
 6870                                          SourceLocation PrevPtOfInstantiation,
 6884       Scope *S, SourceLocation ExternLoc, SourceLocation TemplateLoc,
 6884       Scope *S, SourceLocation ExternLoc, SourceLocation TemplateLoc,
 6885       unsigned TagSpec, SourceLocation KWLoc, const CXXScopeSpec &SS,
 6886       TemplateTy Template, SourceLocation TemplateNameLoc,
 6887       SourceLocation LAngleLoc, ASTTemplateArgsPtr TemplateArgs,
 6888       SourceLocation RAngleLoc, const ParsedAttributesView &Attr);
 6890   DeclResult ActOnExplicitInstantiation(Scope *S, SourceLocation ExternLoc,
 6891                                         SourceLocation TemplateLoc,
 6892                                         unsigned TagSpec, SourceLocation KWLoc,
 6894                                         SourceLocation NameLoc,
 6898                                         SourceLocation ExternLoc,
 6899                                         SourceLocation TemplateLoc,
 6904                                           SourceLocation TemplateLoc,
 6905                                           SourceLocation RAngleLoc,
 6930                              SourceLocation TemplateLoc,
 6931                              SourceLocation RAngleLoc,
 6962                                  SourceLocation TemplateLoc,
 6984                                           SourceLocation Loc);
 6987                                               SourceLocation Loc);
 7027                                       SourceLocation TemplateArgLoc
 7041   ActOnTypenameType(Scope *S, SourceLocation TypenameLoc,
 7043                     SourceLocation IdLoc);
 7060   ActOnTypenameType(Scope *S, SourceLocation TypenameLoc,
 7062                     SourceLocation TemplateLoc,
 7065                     SourceLocation TemplateIILoc,
 7066                     SourceLocation LAngleLoc,
 7068                     SourceLocation RAngleLoc);
 7071                              SourceLocation KeywordLoc,
 7074                              SourceLocation IILoc);
 7077                                                     SourceLocation Loc,
 7097       IdentifierInfo *Name, SourceLocation NameLoc, Expr *ConstraintExpr);
 7184   bool DiagnoseUnexpandedParameterPacks(SourceLocation Loc,
 7197   bool DiagnoseUnexpandedParameterPack(SourceLocation Loc, TypeSourceInfo *T,
 7239   bool DiagnoseUnexpandedParameterPack(SourceLocation Loc,
 7309                                             SourceLocation EllipsisLoc);
 7318   TypeResult ActOnPackExpansion(ParsedType Type, SourceLocation EllipsisLoc);
 7323                                      SourceLocation EllipsisLoc,
 7330                               SourceLocation EllipsisLoc,
 7340   ExprResult ActOnPackExpansion(Expr *Pattern, SourceLocation EllipsisLoc);
 7349   ExprResult CheckPackExpansion(Expr *Pattern, SourceLocation EllipsisLoc,
 7386   bool CheckParameterPacksForExpansion(SourceLocation EllipsisLoc,
 7431       SourceLocation &Ellipsis,
 7606   bool DeduceReturnType(FunctionDecl *FD, SourceLocation Loc,
 7612                                       SourceLocation Loc);
 7626                                         SourceLocation ReturnLoc,
 7631                                                    SourceLocation Loc,
 7638                      SourceLocation Loc,
 7648                                   SourceLocation Loc);
 7655       VarTemplatePartialSpecializationDecl *PS2, SourceLocation Loc);
 7661       TemplateParameterList *P, TemplateDecl *AArg, SourceLocation Loc);
 7766     SourceLocation PointOfInstantiation;
 7931     InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation,
 7938     InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation,
 7944     InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation,
 7951     InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation,
 7960     InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation,
 7969     InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation,
 7978     InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation,
 7986     InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation,
 7993     InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation,
 8001     InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation,
 8009     InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation,
 8019     InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation,
 8028     InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation,
 8050     bool CheckInstantiationDepth(SourceLocation PointOfInstantiation,
 8055         SourceLocation PointOfInstantiation, SourceRange InstantiationRange,
 8175   typedef llvm::SmallSet<SourceLocation, 2> SrcLocSet;
 8195   typedef std::pair<ValueDecl *, SourceLocation> PendingImplicitInstantiation;
 8305                             SourceLocation Loc, DeclarationName Entity,
 8310                      SourceLocation Loc, DeclarationName Entity);
 8314                             SourceLocation Loc, DeclarationName Entity);
 8318                                         SourceLocation Loc,
 8324   bool SubstExceptionSpec(SourceLocation Loc,
 8333   bool SubstParmTypes(SourceLocation Loc, ArrayRef<ParmVarDecl *> Params,
 8379   InstantiateClass(SourceLocation PointOfInstantiation,
 8385   bool InstantiateEnum(SourceLocation PointOfInstantiation,
 8391       SourceLocation PointOfInstantiation, FieldDecl *Instantiation,
 8418       SourceLocation Loc, ClassTemplateSpecializationDecl *ClassTemplateSpec);
 8421   InstantiateClassTemplateSpecialization(SourceLocation PointOfInstantiation,
 8426   void InstantiateClassMembers(SourceLocation PointOfInstantiation,
 8432                                           SourceLocation PointOfInstantiation,
 8445                     SourceLocation Loc,
 8451   void InstantiateExceptionSpec(SourceLocation PointOfInstantiation,
 8455                                                SourceLocation Loc);
 8456   void InstantiateFunctionDefinition(SourceLocation PointOfInstantiation,
 8466       SourceLocation PointOfInstantiation, void *InsertPos,
 8483       const DeclarationNameInfo &MemberNameInfo, SourceLocation TemplateKWLoc);
 8488   void InstantiateVariableDefinition(SourceLocation PointOfInstantiation,
 8497   NamedDecl *FindInstantiatedDecl(SourceLocation Loc, NamedDecl *D,
 8500   DeclContext *FindInstantiatedContext(SourceLocation Loc, DeclContext *DC,
 8517                                 SourceLocation varianceLoc,
 8520                                 SourceLocation paramLoc,
 8521                                 SourceLocation colonLoc,
 8524   ObjCTypeParamList *actOnObjCTypeParamList(Scope *S, SourceLocation lAngleLoc,
 8526                                             SourceLocation rAngleLoc);
 8530       Scope *S, SourceLocation AtInterfaceLoc, IdentifierInfo *ClassName,
 8531       SourceLocation ClassLoc, ObjCTypeParamList *typeParamList,
 8532       IdentifierInfo *SuperName, SourceLocation SuperLoc,
 8535       const SourceLocation *ProtoLocs, SourceLocation EndProtoLoc,
 8535       const SourceLocation *ProtoLocs, SourceLocation EndProtoLoc,
 8539                                        SourceLocation AtInterfaceLoc,
 8542                                        SourceLocation ClassLoc,
 8544                                        SourceLocation SuperLoc,
 8549                                SmallVectorImpl<SourceLocation> &ProtocolLocs,
 8551                                SourceLocation SuperLoc);
 8554                     SourceLocation AtCompatibilityAliasLoc,
 8555                     IdentifierInfo *AliasName,  SourceLocation AliasLocation,
 8556                     IdentifierInfo *ClassName, SourceLocation ClassLocation);
 8560     SourceLocation &PLoc, SourceLocation PrevLoc,
 8560     SourceLocation &PLoc, SourceLocation PrevLoc,
 8564       SourceLocation AtProtoInterfaceLoc, IdentifierInfo *ProtocolName,
 8565       SourceLocation ProtocolLoc, Decl *const *ProtoRefNames,
 8566       unsigned NumProtoRefs, const SourceLocation *ProtoLocs,
 8567       SourceLocation EndProtoLoc, const ParsedAttributesView &AttrList);
 8570       SourceLocation AtInterfaceLoc, IdentifierInfo *ClassName,
 8571       SourceLocation ClassLoc, ObjCTypeParamList *typeParamList,
 8572       IdentifierInfo *CategoryName, SourceLocation CategoryLoc,
 8574       const SourceLocation *ProtoLocs, SourceLocation EndProtoLoc,
 8574       const SourceLocation *ProtoLocs, SourceLocation EndProtoLoc,
 8577   Decl *ActOnStartClassImplementation(SourceLocation AtClassImplLoc,
 8579                                       SourceLocation ClassLoc,
 8581                                       SourceLocation SuperClassLoc,
 8584   Decl *ActOnStartCategoryImplementation(SourceLocation AtCatImplLoc,
 8586                                          SourceLocation ClassLoc,
 8588                                          SourceLocation CatLoc,
 8594   DeclGroupPtrTy ActOnForwardClassDeclaration(SourceLocation Loc,
 8596                    SourceLocation *IdentLocs,
 8601   ActOnForwardProtocolDeclaration(SourceLocation AtProtoclLoc,
 8610                                     SourceLocation ProtocolLoc,
 8612                                     SourceLocation TypeArgLoc,
 8621          SourceLocation lAngleLoc,
 8623          ArrayRef<SourceLocation> identifierLocs,
 8624          SourceLocation rAngleLoc,
 8625          SourceLocation &typeArgsLAngleLoc,
 8627          SourceLocation &typeArgsRAngleLoc,
 8628          SourceLocation &protocolLAngleLoc,
 8630          SourceLocation &protocolRAngleLoc,
 8636                SourceLocation lAngleLoc,
 8638                ArrayRef<SourceLocation> protocolLocs,
 8639                SourceLocation rAngleLoc);
 8644                SourceLocation Loc,
 8646                SourceLocation TypeArgsLAngleLoc,
 8648                SourceLocation TypeArgsRAngleLoc,
 8649                SourceLocation ProtocolLAngleLoc,
 8651                ArrayRef<SourceLocation> ProtocolLocs,
 8652                SourceLocation ProtocolRAngleLoc);
 8656                                   SourceLocation ProtocolLAngleLoc,
 8658                                   ArrayRef<SourceLocation> ProtocolLocs,
 8659                                   SourceLocation ProtocolRAngleLoc,
 8664                                SourceLocation Loc,
 8665                                SourceLocation TypeArgsLAngleLoc,
 8667                                SourceLocation TypeArgsRAngleLoc,
 8668                                SourceLocation ProtocolLAngleLoc,
 8670                                ArrayRef<SourceLocation> ProtocolLocs,
 8671                                SourceLocation ProtocolRAngleLoc,
 8678                                    SourceLocation Loc,
 8700   Decl *ActOnProperty(Scope *S, SourceLocation AtLoc,
 8701                       SourceLocation LParenLoc,
 8708                               SourceLocation AtLoc,
 8709                               SourceLocation PropertyLoc,
 8713                               SourceLocation PropertyIvarLoc,
 8727     SourceLocation NameLoc;
 8739       SourceLocation BeginLoc, // location of the + or -.
 8740       SourceLocation EndLoc,   // location of the ; or {.
 8742       ArrayRef<SourceLocation> SelectorLocs, Selector Sel,
 8762                             SourceLocation OpLoc,
 8764                             SourceLocation MemberLoc,
 8765                             SourceLocation SuperLoc, QualType SuperType,
 8771                             SourceLocation receiverNameLoc,
 8772                             SourceLocation propertyNameLoc);
 8774   ObjCMethodDecl *tryCaptureObjCSelf(SourceLocation Loc);
 8790                                      SourceLocation NameLoc,
 8795   ExprResult ActOnSuperMessage(Scope *S, SourceLocation SuperLoc,
 8797                                SourceLocation LBracLoc,
 8798                                ArrayRef<SourceLocation> SelectorLocs,
 8799                                SourceLocation RBracLoc,
 8804                                SourceLocation SuperLoc,
 8807                                SourceLocation LBracLoc,
 8808                                ArrayRef<SourceLocation> SelectorLocs,
 8809                                SourceLocation RBracLoc,
 8815                                        SourceLocation Loc,
 8823                                SourceLocation LBracLoc,
 8824                                ArrayRef<SourceLocation> SelectorLocs,
 8825                                SourceLocation RBracLoc,
 8830                                   SourceLocation SuperLoc,
 8833                                   SourceLocation LBracLoc,
 8834                                   ArrayRef<SourceLocation> SelectorLocs,
 8835                                   SourceLocation RBracLoc,
 8841                                           SourceLocation Loc,
 8849                                   SourceLocation LBracLoc,
 8850                                   ArrayRef<SourceLocation> SelectorLocs,
 8851                                   SourceLocation RBracLoc,
 8854   ExprResult BuildObjCBridgedCast(SourceLocation LParenLoc,
 8856                                   SourceLocation BridgeKeywordLoc,
 8861                                   SourceLocation LParenLoc,
 8863                                   SourceLocation BridgeKeywordLoc,
 8865                                   SourceLocation RParenLoc,
 8875   bool checkObjCBridgeRelatedComponents(SourceLocation Loc,
 8883   bool CheckObjCBridgeRelatedConversions(SourceLocation Loc,
 8918   void ActOnPragmaClangSection(SourceLocation PragmaLoc,
 8924                                SourceLocation PragmaLoc);
 8927   void ActOnPragmaPack(SourceLocation PragmaLoc, PragmaMsStackAction Action,
 8936                                     SourceLocation IncludeLoc);
 8944   void ActOnPragmaMSComment(SourceLocation CommentLoc, PragmaMSCommentKind Kind,
 8952       SourceLocation PragmaLoc);
 8956                              SourceLocation PragmaLoc,
 8971                     SourceLocation PragmaSectionLocation);
 8974   void ActOnPragmaMSSeg(SourceLocation PragmaLocation,
 8981   void ActOnPragmaMSSection(SourceLocation PragmaLocation,
 8985   void ActOnPragmaMSInitSeg(SourceLocation PragmaLocation,
 8989   void ActOnPragmaDump(Scope *S, SourceLocation Loc, IdentifierInfo *II);
 8992   void ActOnPragmaDetectMismatch(SourceLocation Loc, StringRef Name,
 8998                          SourceLocation PragmaLoc);
 9002                              SourceLocation PragmaLoc);
 9005                                  SourceLocation Loc);
 9010                          SourceLocation PragmaLoc,
 9011                          SourceLocation WeakNameLoc);
 9017                                   SourceLocation PragmaLoc,
 9018                                   SourceLocation WeakNameLoc,
 9019                                   SourceLocation AliasNameLoc);
 9024                             SourceLocation PragmaLoc,
 9025                             SourceLocation WeakNameLoc,
 9026                             SourceLocation AliasNameLoc);
 9050                                    SourceLocation Loc);
 9058   void PopPragmaVisibility(bool IsNamespaceEnd, SourceLocation EndLoc);
 9069                                      SourceLocation PragmaLoc,
 9071   void ActOnPragmaAttributeEmptyPush(SourceLocation PragmaLoc,
 9075   void ActOnPragmaAttributePop(SourceLocation PragmaLoc,
 9085   void ActOnPragmaOptimize(bool On, SourceLocation PragmaLoc);
 9089   SourceLocation getOptimizeOffPragmaLocation() const {
 9101   void AddOptnoneAttributeIfNoConflicts(FunctionDecl *FD, SourceLocation Loc);
 9149   bool checkNSReturnsRetainedReturnType(SourceLocation loc, QualType type);
 9154   bool ActOnCoroutineBodyStart(Scope *S, SourceLocation KwLoc,
 9156   ExprResult ActOnCoawaitExpr(Scope *S, SourceLocation KwLoc, Expr *E);
 9157   ExprResult ActOnCoyieldExpr(Scope *S, SourceLocation KwLoc, Expr *E);
 9158   StmtResult ActOnCoreturnStmt(Scope *S, SourceLocation KwLoc, Expr *E);
 9160   ExprResult BuildResolvedCoawaitExpr(SourceLocation KwLoc, Expr *E,
 9162   ExprResult BuildUnresolvedCoawaitExpr(SourceLocation KwLoc, Expr *E,
 9164   ExprResult BuildCoyieldExpr(SourceLocation KwLoc, Expr *E);
 9165   StmtResult BuildCoreturnStmt(SourceLocation KwLoc, Expr *E,
 9168   bool buildCoroutineParameterMoves(SourceLocation Loc);
 9169   VarDecl *buildCoroutinePromise(SourceLocation Loc);
 9171   ClassTemplateDecl *lookupCoroutineTraits(SourceLocation KwLoc,
 9172                                            SourceLocation FuncLoc);
 9272   void checkOpenMPDeviceFunction(SourceLocation Loc, FunctionDecl *Callee,
 9276   void checkOpenMPHostFunction(SourceLocation Loc, FunctionDecl *Callee,
 9304   void markOpenMPDeclareVariantFuncsReferenced(SourceLocation Loc,
 9353                                    ExprObjectKind OK, SourceLocation Loc);
 9378   ExprResult PerformOpenMPImplicitIntegerConversion(SourceLocation OpLoc,
 9383                            SourceLocation Loc);
 9395   void ActOnOpenMPLoopInitialization(SourceLocation ForLoc, Stmt *Init);
 9405                                      SourceLocation Loc,
 9408   OMPThreadPrivateDecl *CheckOMPThreadPrivateDecl(SourceLocation Loc,
 9411   DeclGroupPtrTy ActOnOpenMPAllocateDirective(SourceLocation Loc,
 9416   DeclGroupPtrTy ActOnOpenMPRequiresDirective(SourceLocation Loc,
 9419   OMPRequiresDecl *CheckOMPRequiresDecl(SourceLocation Loc,
 9423   QualType ActOnOpenMPDeclareReductionType(SourceLocation TyLoc,
 9428       ArrayRef<std::pair<QualType, SourceLocation>> ReductionTypes,
 9448   QualType ActOnOpenMPDeclareMapperType(SourceLocation TyLoc,
 9453       SourceLocation StartLoc, DeclarationName VN, AccessSpecifier AS,
 9458                                                 SourceLocation StartLoc,
 9466   bool ActOnStartOpenMPDeclareTargetDirective(SourceLocation Loc);
 9476   void ActOnOpenMPDeclareTargetName(NamedDecl *ND, SourceLocation Loc,
 9482                                    SourceLocation IdLoc = SourceLocation());
 9505       Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc);
 9505       Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc);
 9510                                           SourceLocation StartLoc,
 9511                                           SourceLocation EndLoc);
 9518                            SourceLocation StartLoc, SourceLocation EndLoc,
 9518                            SourceLocation StartLoc, SourceLocation EndLoc,
 9524                           SourceLocation StartLoc, SourceLocation EndLoc,
 9524                           SourceLocation StartLoc, SourceLocation EndLoc,
 9530                               SourceLocation StartLoc, SourceLocation EndLoc,
 9530                               SourceLocation StartLoc, SourceLocation EndLoc,
 9535                                           Stmt *AStmt, SourceLocation StartLoc,
 9536                                           SourceLocation EndLoc);
 9539   StmtResult ActOnOpenMPSectionDirective(Stmt *AStmt, SourceLocation StartLoc,
 9540                                          SourceLocation EndLoc);
 9544                                         Stmt *AStmt, SourceLocation StartLoc,
 9545                                         SourceLocation EndLoc);
 9548   StmtResult ActOnOpenMPMasterDirective(Stmt *AStmt, SourceLocation StartLoc,
 9549                                         SourceLocation EndLoc);
 9554                                           Stmt *AStmt, SourceLocation StartLoc,
 9555                                           SourceLocation EndLoc);
 9559       ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9560       SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA);
 9564       ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9565       SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA);
 9570                                                   SourceLocation StartLoc,
 9571                                                   SourceLocation EndLoc);
 9575                                       Stmt *AStmt, SourceLocation StartLoc,
 9576                                       SourceLocation EndLoc);
 9578   StmtResult ActOnOpenMPTaskyieldDirective(SourceLocation StartLoc,
 9579                                            SourceLocation EndLoc);
 9581   StmtResult ActOnOpenMPBarrierDirective(SourceLocation StartLoc,
 9582                                          SourceLocation EndLoc);
 9584   StmtResult ActOnOpenMPTaskwaitDirective(SourceLocation StartLoc,
 9585                                           SourceLocation EndLoc);
 9588                                            Stmt *AStmt, SourceLocation StartLoc,
 9589                                            SourceLocation EndLoc);
 9592                                        SourceLocation StartLoc,
 9593                                        SourceLocation EndLoc);
 9597                                          Stmt *AStmt, SourceLocation StartLoc,
 9598                                          SourceLocation EndLoc);
 9602                                         Stmt *AStmt, SourceLocation StartLoc,
 9603                                         SourceLocation EndLoc);
 9607                                         Stmt *AStmt, SourceLocation StartLoc,
 9608                                         SourceLocation EndLoc);
 9612                                             Stmt *AStmt, SourceLocation StartLoc,
 9613                                             SourceLocation EndLoc);
 9617                                                  SourceLocation StartLoc,
 9618                                                  SourceLocation EndLoc,
 9623                                                 SourceLocation StartLoc,
 9624                                                 SourceLocation EndLoc,
 9630                                                 SourceLocation StartLoc,
 9631                                                 SourceLocation EndLoc);
 9635       ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9636       SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA);
 9640                                        Stmt *AStmt, SourceLocation StartLoc,
 9641                                        SourceLocation EndLoc);
 9644   ActOnOpenMPCancellationPointDirective(SourceLocation StartLoc,
 9645                                         SourceLocation EndLoc,
 9649                                         SourceLocation StartLoc,
 9650                                         SourceLocation EndLoc,
 9656                                SourceLocation StartLoc, SourceLocation EndLoc,
 9656                                SourceLocation StartLoc, SourceLocation EndLoc,
 9661       ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9662       SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA);
 9666       ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9667       SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA);
 9671       ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9672       SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA);
 9676       ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9677       SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA);
 9682                                  SourceLocation StartLoc, SourceLocation EndLoc,
 9682                                  SourceLocation StartLoc, SourceLocation EndLoc,
 9686                                               SourceLocation StartLoc,
 9687                                               SourceLocation EndLoc,
 9692       ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9693       SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA);
 9697       ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9698       SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA);
 9702       ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9703       SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA);
 9707       ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9708       SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA);
 9713                                  SourceLocation StartLoc, SourceLocation EndLoc,
 9713                                  SourceLocation StartLoc, SourceLocation EndLoc,
 9718       ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9719       SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA);
 9723       ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9724       SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA);
 9728       ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9729       SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA);
 9733       ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9734       SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA);
 9739                                              SourceLocation StartLoc,
 9740                                              SourceLocation EndLoc);
 9744       ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9745       SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA);
 9749       ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9750       SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA);
 9754       ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9755       SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA);
 9759       ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9760       SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA);
 9764                                  SourceLocation LinLoc);
 9767   bool CheckOpenMPLinearDecl(const ValueDecl *D, SourceLocation ELoc,
 9803                                          SourceLocation StartLoc,
 9804                                          SourceLocation LParenLoc,
 9805                                          SourceLocation EndLoc);
 9808                                         SourceLocation StartLoc,
 9809                                         SourceLocation LParenLoc,
 9810                                         SourceLocation EndLoc);
 9813                                  Expr *Condition, SourceLocation StartLoc,
 9814                                  SourceLocation LParenLoc,
 9815                                  SourceLocation NameModifierLoc,
 9816                                  SourceLocation ColonLoc,
 9817                                  SourceLocation EndLoc);
 9819   OMPClause *ActOnOpenMPFinalClause(Expr *Condition, SourceLocation StartLoc,
 9820                                     SourceLocation LParenLoc,
 9821                                     SourceLocation EndLoc);
 9824                                          SourceLocation StartLoc,
 9825                                          SourceLocation LParenLoc,
 9826                                          SourceLocation EndLoc);
 9829                                       SourceLocation StartLoc,
 9830                                       SourceLocation LParenLoc,
 9831                                       SourceLocation EndLoc);
 9833   OMPClause *ActOnOpenMPSimdlenClause(Expr *Length, SourceLocation StartLoc,
 9834                                       SourceLocation LParenLoc,
 9835                                       SourceLocation EndLoc);
 9838                                        SourceLocation StartLoc,
 9839                                        SourceLocation LParenLoc,
 9840                                        SourceLocation EndLoc);
 9843   ActOnOpenMPOrderedClause(SourceLocation StartLoc, SourceLocation EndLoc,
 9843   ActOnOpenMPOrderedClause(SourceLocation StartLoc, SourceLocation EndLoc,
 9844                            SourceLocation LParenLoc = SourceLocation(),
 9847   OMPClause *ActOnOpenMPGrainsizeClause(Expr *Size, SourceLocation StartLoc,
 9848                                         SourceLocation LParenLoc,
 9849                                         SourceLocation EndLoc);
 9851   OMPClause *ActOnOpenMPNumTasksClause(Expr *NumTasks, SourceLocation StartLoc,
 9852                                        SourceLocation LParenLoc,
 9853                                        SourceLocation EndLoc);
 9855   OMPClause *ActOnOpenMPHintClause(Expr *Hint, SourceLocation StartLoc,
 9856                                    SourceLocation LParenLoc,
 9857                                    SourceLocation EndLoc);
 9861                                      SourceLocation ArgumentLoc,
 9862                                      SourceLocation StartLoc,
 9863                                      SourceLocation LParenLoc,
 9864                                      SourceLocation EndLoc);
 9867                                       SourceLocation KindLoc,
 9868                                       SourceLocation StartLoc,
 9869                                       SourceLocation LParenLoc,
 9870                                       SourceLocation EndLoc);
 9873                                        SourceLocation KindLoc,
 9874                                        SourceLocation StartLoc,
 9875                                        SourceLocation LParenLoc,
 9876                                        SourceLocation EndLoc);
 9880       SourceLocation StartLoc, SourceLocation LParenLoc,
 9880       SourceLocation StartLoc, SourceLocation LParenLoc,
 9881       ArrayRef<SourceLocation> ArgumentsLoc, SourceLocation DelimLoc,
 9881       ArrayRef<SourceLocation> ArgumentsLoc, SourceLocation DelimLoc,
 9882       SourceLocation EndLoc);
 9886       OpenMPScheduleClauseKind Kind, Expr *ChunkSize, SourceLocation StartLoc,
 9887       SourceLocation LParenLoc, SourceLocation M1Loc, SourceLocation M2Loc,
 9887       SourceLocation LParenLoc, SourceLocation M1Loc, SourceLocation M2Loc,
 9887       SourceLocation LParenLoc, SourceLocation M1Loc, SourceLocation M2Loc,
 9888       SourceLocation KindLoc, SourceLocation CommaLoc, SourceLocation EndLoc);
 9888       SourceLocation KindLoc, SourceLocation CommaLoc, SourceLocation EndLoc);
 9888       SourceLocation KindLoc, SourceLocation CommaLoc, SourceLocation EndLoc);
 9890   OMPClause *ActOnOpenMPClause(OpenMPClauseKind Kind, SourceLocation StartLoc,
 9891                                SourceLocation EndLoc);
 9893   OMPClause *ActOnOpenMPNowaitClause(SourceLocation StartLoc,
 9894                                      SourceLocation EndLoc);
 9896   OMPClause *ActOnOpenMPUntiedClause(SourceLocation StartLoc,
 9897                                      SourceLocation EndLoc);
 9899   OMPClause *ActOnOpenMPMergeableClause(SourceLocation StartLoc,
 9900                                         SourceLocation EndLoc);
 9902   OMPClause *ActOnOpenMPReadClause(SourceLocation StartLoc,
 9903                                    SourceLocation EndLoc);
 9905   OMPClause *ActOnOpenMPWriteClause(SourceLocation StartLoc,
 9906                                     SourceLocation EndLoc);
 9908   OMPClause *ActOnOpenMPUpdateClause(SourceLocation StartLoc,
 9909                                      SourceLocation EndLoc);
 9911   OMPClause *ActOnOpenMPCaptureClause(SourceLocation StartLoc,
 9912                                       SourceLocation EndLoc);
 9914   OMPClause *ActOnOpenMPSeqCstClause(SourceLocation StartLoc,
 9915                                      SourceLocation EndLoc);
 9917   OMPClause *ActOnOpenMPThreadsClause(SourceLocation StartLoc,
 9918                                       SourceLocation EndLoc);
 9920   OMPClause *ActOnOpenMPSIMDClause(SourceLocation StartLoc,
 9921                                    SourceLocation EndLoc);
 9923   OMPClause *ActOnOpenMPNogroupClause(SourceLocation StartLoc,
 9924                                       SourceLocation EndLoc);
 9926   OMPClause *ActOnOpenMPUnifiedAddressClause(SourceLocation StartLoc,
 9927                                              SourceLocation EndLoc);
 9930   OMPClause *ActOnOpenMPUnifiedSharedMemoryClause(SourceLocation StartLoc,
 9931                                                   SourceLocation EndLoc);
 9934   OMPClause *ActOnOpenMPReverseOffloadClause(SourceLocation StartLoc,
 9935                                              SourceLocation EndLoc);
 9938   OMPClause *ActOnOpenMPDynamicAllocatorsClause(SourceLocation StartLoc,
 9939                                                 SourceLocation EndLoc);
 9943       OpenMPAtomicDefaultMemOrderClauseKind Kind, SourceLocation KindLoc,
 9944       SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc);
 9944       SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc);
 9944       SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc);
 9948       const OMPVarListLocTy &Locs, SourceLocation ColonLoc,
 9953       ArrayRef<SourceLocation> MapTypeModifiersLoc, OpenMPMapClauseKind MapType,
 9954       bool IsMapTypeImplicit, SourceLocation DepLinMapLoc);
 9958                             SourceLocation StartLoc, SourceLocation ColonLoc,
 9958                             SourceLocation StartLoc, SourceLocation ColonLoc,
 9959                             SourceLocation LParenLoc, SourceLocation EndLoc);
 9959                             SourceLocation LParenLoc, SourceLocation EndLoc);
 9962                                       SourceLocation StartLoc,
 9963                                       SourceLocation LParenLoc,
 9964                                       SourceLocation EndLoc);
 9967                                            SourceLocation StartLoc,
 9968                                            SourceLocation LParenLoc,
 9969                                            SourceLocation EndLoc);
 9972                                           SourceLocation StartLoc,
 9973                                           SourceLocation LParenLoc,
 9974                                           SourceLocation EndLoc);
 9977                                      SourceLocation StartLoc,
 9978                                      SourceLocation LParenLoc,
 9979                                      SourceLocation EndLoc);
 9982       ArrayRef<Expr *> VarList, SourceLocation StartLoc,
 9983       SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc,
 9983       SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc,
 9983       SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc,
 9989       ArrayRef<Expr *> VarList, SourceLocation StartLoc,
 9990       SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc,
 9990       SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc,
 9990       SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc,
 9996       ArrayRef<Expr *> VarList, SourceLocation StartLoc,
 9997       SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc,
 9997       SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc,
 9997       SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc,
10004                           SourceLocation StartLoc, SourceLocation LParenLoc,
10004                           SourceLocation StartLoc, SourceLocation LParenLoc,
10005                           OpenMPLinearClauseKind LinKind, SourceLocation LinLoc,
10006                           SourceLocation ColonLoc, SourceLocation EndLoc);
10006                           SourceLocation ColonLoc, SourceLocation EndLoc);
10010                                       SourceLocation StartLoc,
10011                                       SourceLocation LParenLoc,
10012                                       SourceLocation ColonLoc,
10013                                       SourceLocation EndLoc);
10016                                      SourceLocation StartLoc,
10017                                      SourceLocation LParenLoc,
10018                                      SourceLocation EndLoc);
10021                                           SourceLocation StartLoc,
10022                                           SourceLocation LParenLoc,
10023                                           SourceLocation EndLoc);
10026                                     SourceLocation StartLoc,
10027                                     SourceLocation LParenLoc,
10028                                     SourceLocation EndLoc);
10031   ActOnOpenMPDependClause(OpenMPDependClauseKind DepKind, SourceLocation DepLoc,
10032                           SourceLocation ColonLoc, ArrayRef<Expr *> VarList,
10033                           SourceLocation StartLoc, SourceLocation LParenLoc,
10033                           SourceLocation StartLoc, SourceLocation LParenLoc,
10034                           SourceLocation EndLoc);
10036   OMPClause *ActOnOpenMPDeviceClause(Expr *Device, SourceLocation StartLoc,
10037                                      SourceLocation LParenLoc,
10038                                      SourceLocation EndLoc);
10042                        ArrayRef<SourceLocation> MapTypeModifiersLoc,
10046                        SourceLocation MapLoc, SourceLocation ColonLoc,
10046                        SourceLocation MapLoc, SourceLocation ColonLoc,
10050   OMPClause *ActOnOpenMPNumTeamsClause(Expr *NumTeams, SourceLocation StartLoc,
10051                                        SourceLocation LParenLoc,
10052                                        SourceLocation EndLoc);
10055                                           SourceLocation StartLoc,
10056                                           SourceLocation LParenLoc,
10057                                           SourceLocation EndLoc);
10059   OMPClause *ActOnOpenMPPriorityClause(Expr *Priority, SourceLocation StartLoc,
10060                                        SourceLocation LParenLoc,
10061                                        SourceLocation EndLoc);
10065       SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation KindLoc,
10065       SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation KindLoc,
10065       SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation KindLoc,
10066       SourceLocation CommaLoc, SourceLocation EndLoc);
10066       SourceLocation CommaLoc, SourceLocation EndLoc);
10070       SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation MLoc,
10070       SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation MLoc,
10070       SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation MLoc,
10071       SourceLocation KindLoc, SourceLocation EndLoc);
10071       SourceLocation KindLoc, SourceLocation EndLoc);
10196   bool GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl,
10299                                 SourceLocation Loc,
10318   AssignConvertType CheckAssignmentConstraints(SourceLocation Loc,
10382   QualType InvalidOperands(SourceLocation Loc, ExprResult &LHS,
10384   QualType InvalidLogicalVectorOperands(SourceLocation Loc, ExprResult &LHS,
10388     SourceLocation OpLoc, bool isIndirect);
10390     ExprResult &LHS, ExprResult &RHS, SourceLocation Loc, bool IsCompAssign,
10393     ExprResult &LHS, ExprResult &RHS, SourceLocation Loc,
10396     ExprResult &LHS, ExprResult &RHS, SourceLocation Loc,
10399     ExprResult &LHS, ExprResult &RHS, SourceLocation Loc,
10402     ExprResult &LHS, ExprResult &RHS, SourceLocation Loc,
10406       ExprResult &LHS, ExprResult &RHS, SourceLocation Loc,
10409       ExprResult &LHS, ExprResult &RHS, SourceLocation Loc,
10412     ExprResult &LHS, ExprResult &RHS, SourceLocation Loc,
10418     Expr *LHSExpr, ExprResult &RHS, SourceLocation Loc, QualType CompoundType);
10420   ExprResult checkPseudoObjectIncDec(Scope *S, SourceLocation OpLoc,
10422   ExprResult checkPseudoObjectAssignment(Scope *S, SourceLocation OpLoc,
10430     ExprValueKind &VK, ExprObjectKind &OK, SourceLocation QuestionLoc);
10433     ExprValueKind &VK, ExprObjectKind &OK, SourceLocation questionLoc);
10434   QualType FindCompositePointerType(SourceLocation Loc, Expr *&E1, Expr *&E2,
10436   QualType FindCompositePointerType(SourceLocation Loc,
10448                                         SourceLocation QuestionLoc);
10451                                   SourceLocation QuestionLoc);
10459                                SourceLocation Loc, bool IsCompAssign,
10463                                       SourceLocation Loc,
10466                                       SourceLocation Loc);
10492   CompareReferenceRelationship(SourceLocation Loc, QualType T1, QualType T2,
10507   ExprResult checkUnknownAnyArg(SourceLocation callLoc,
10530                                         SourceLocation LParenLoc,
10532                                         SourceLocation RParenLoc);
10560   bool checkUnsafeAssigns(SourceLocation Loc, QualType LHS, Expr *RHS);
10564   void checkUnsafeExprAssigns(SourceLocation Loc, Expr *LHS, Expr *RHS);
10572                                  ArrayRef<SourceLocation> SelectorLocs,
10574                                  bool isSuperMessage, SourceLocation lbrac,
10575                                  SourceLocation rbrac, SourceRange RecRange,
10634   ConditionResult ActOnCondition(Scope *S, SourceLocation Loc,
10638                                          SourceLocation StmtLoc,
10644                                     SourceLocation StmtLoc,
10646   ExprResult CheckSwitchCondition(SourceLocation SwitchLoc, Expr *Cond);
10656   ExprResult CheckBooleanCondition(SourceLocation Loc, Expr *E,
10683                                           SourceLocation Loc, unsigned DiagID);
10698     virtual void diagnoseNotICE(Sema &S, SourceLocation Loc, SourceRange SR) =0;
10699     virtual void diagnoseFold(Sema &S, SourceLocation Loc, SourceRange SR);
10719   ExprResult VerifyBitField(SourceLocation FieldLoc, IdentifierInfo *FieldName,
10748     SourceLocation Loc;
10774                                                  SourceLocation>>
10809     DeviceDiagBuilder(Kind K, SourceLocation Loc, unsigned DiagID,
10840     SourceLocation Loc;
10856       SourceLocation OrigLoc,
10875   DeviceDiagBuilder CUDADiagIfDeviceCode(SourceLocation Loc, unsigned DiagID);
10881   DeviceDiagBuilder CUDADiagIfHostCode(SourceLocation Loc, unsigned DiagID);
10898   DeviceDiagBuilder diagIfOpenMPDeviceCode(SourceLocation Loc, unsigned DiagID);
10913   DeviceDiagBuilder diagIfOpenMPHostCode(SourceLocation Loc, unsigned DiagID);
10915   DeviceDiagBuilder targetDiag(SourceLocation Loc, unsigned DiagID);
10992   bool CheckCUDACall(SourceLocation Loc, FunctionDecl *Callee);
11028   bool isEmptyCudaConstructor(SourceLocation Loc, CXXConstructorDecl *CD);
11029   bool isEmptyCudaDestructor(SourceLocation Loc, CXXDestructorDecl *CD);
11101   void CodeCompleteModuleImport(SourceLocation ImportLoc, ModuleIdPath Path);
11114                                        SourceLocation OpLoc, bool IsArrow,
11128                                     SourceLocation OpenParLoc);
11130                                            SourceLocation Loc,
11132                                            SourceLocation OpenParLoc);
11138                                               SourceLocation OpenParLoc);
11167   void CodeCompleteObjCSuperMessage(Scope *S, SourceLocation SuperLoc,
11188                                   SourceLocation ClassNameLoc);
11192                                          SourceLocation ClassNameLoc);
11195                                               SourceLocation ClassNameLoc);
11207                                             SourceLocation ClassNameLoc,
11229   SourceLocation getLocationOfStringLiteralByte(const StringLiteral *SL,
11249   bool CheckObjCMethodCall(ObjCMethodDecl *Method, SourceLocation loc,
11257                             SourceLocation Loc);
11261                  bool IsMemberFunction, SourceLocation Loc, SourceRange Range,
11300                                    SourceLocation BuiltinLoc,
11301                                    SourceLocation RParenLoc);
11353                             SourceLocation Loc, SourceRange Range,
11359                             SourceLocation Loc, SourceRange range,
11378                           SourceLocation ReturnLoc,
11384   void CheckFloatComparison(SourceLocation Loc, Expr *LHS, Expr *RHS);
11387   void CheckImplicitConversions(Expr *E, SourceLocation CC = SourceLocation());
11388   void CheckBoolLikeConversion(Expr *E, SourceLocation CC);
11394   void CheckCompletedExpr(Expr *E, SourceLocation CheckLoc = SourceLocation(),
11397   void CheckBitFieldInitialization(SourceLocation InitLoc, FieldDecl *Field,
11401   void CheckShadowInheritedFields(const SourceLocation &Loc,
11415   void AnalyzeDeleteExprMismatch(FieldDecl *Field, SourceLocation DeleteLoc,
11452                                 SourceLocation CallSiteLoc);
tools/clang/include/clang/Sema/SemaFixItUtils.h
   37                                  SourceLocation Loc,
   54                                         SourceLocation Loc,
tools/clang/include/clang/Sema/TemplateDeduction.h
   45   SourceLocation Loc;
   62   TemplateDeductionInfo(SourceLocation Loc, unsigned DeducedDepth = 0)
   69   SourceLocation getLocation() const {
  130   void addSFINAEDiagnostic(SourceLocation Loc, PartialDiagnostic PD) {
  140   void addSuppressedDiagnostic(SourceLocation Loc,
  304   SourceLocation Loc;
  314   TemplateSpecCandidateSet(SourceLocation Loc, bool ForTakingAddress = false)
  321   SourceLocation getLocation() const { return Loc; }
  342   void NoteCandidates(Sema &S, SourceLocation Loc);
  344   void NoteCandidates(Sema &S, SourceLocation Loc) const {
tools/clang/include/clang/Sema/Weak.h
   26   SourceLocation loc;     // for diagnostics
   31   WeakInfo(IdentifierInfo *Alias, SourceLocation Loc)
   34   inline SourceLocation getLocation() const { return loc; }
tools/clang/include/clang/Serialization/ASTBitCodes.h
  191       SourceLocation getBegin() const {
  192         return SourceLocation::getFromRawEncoding(Begin);
  195       SourceLocation getEnd() const {
  196         return SourceLocation::getFromRawEncoding(End);
  211       SourceLocation getBegin() const {
  212         return SourceLocation::getFromRawEncoding(Begin);
  214       SourceLocation getEnd() const {
  215         return SourceLocation::getFromRawEncoding(End);
  228       DeclOffset(SourceLocation Loc, uint32_t BitOffset)
  231       void setLocation(SourceLocation L) {
  235       SourceLocation getLocation() const {
  236         return SourceLocation::getFromRawEncoding(Loc);
tools/clang/include/clang/Serialization/ASTDeserializationListener.h
   57                                 SourceLocation ImportLoc) {}
tools/clang/include/clang/Serialization/ASTReader.h
  456   SourceLocation CurrentImportLoc;
  857   SourceLocation OptimizeOffPragmaLocation;
  864   SourceLocation PointersToMembersPragmaLocation;
  868   SourceLocation PragmaPackCurrentLocation;
  871     SourceLocation Location;
  872     SourceLocation PushLocation;
  903     SourceLocation ImportLoc;
  905     ImportedSubmodule(serialization::SubmoduleID ID, SourceLocation ImportLoc)
 1267     SourceLocation ImportLoc;
 1271                    SourceLocation ImportLoc)
 1276                             SourceLocation ImportLoc, ModuleFile *ImportedBy,
 1310   SourceLocation getImportLocation(ModuleFile *F);
 1355                                  SourceLocation &Location);
 1367   findPreprocessedEntity(SourceLocation Loc, bool EndsAfter) const;
 1550                         SourceLocation ImportLoc,
 1565                          SourceLocation ImportLoc);
 1835   SourceLocation getSourceLocationForDeclID(serialization::GlobalDeclID ID);
 2000       llvm::MapVector<NamedDecl *, SourceLocation> &Undefined) override;
 2003       FieldDecl *, llvm::SmallVector<std::pair<SourceLocation, bool>, 4>> &
 2021            SmallVectorImpl<std::pair<Selector, SourceLocation>> &Sels) override;
 2030                                             SourceLocation>> &Pending) override;
 2048   DiagnosticBuilder Diag(SourceLocation Loc, unsigned DiagID) const;
 2083   std::pair<SourceLocation, StringRef> getModuleImportLoc(int ID) override;
 2188   SourceLocation ReadUntranslatedSourceLocation(uint32_t Raw) const {
 2189     return SourceLocation::getFromRawEncoding((Raw >> 1) | (Raw << 31));
 2193   SourceLocation ReadSourceLocation(ModuleFile &ModuleFile, uint32_t Raw) const {
 2194     SourceLocation Loc = ReadUntranslatedSourceLocation(Raw);
 2200   SourceLocation TranslateSourceLocation(ModuleFile &ModuleFile,
 2201                                          SourceLocation Loc) const {
 2212   SourceLocation ReadSourceLocation(ModuleFile &ModuleFile,
 2619   SourceLocation readSourceLocation() {
tools/clang/include/clang/Serialization/ASTWriter.h
  355     DeclUpdate(unsigned Kind, SourceLocation Loc)
  366     SourceLocation getLoc() const {
  367       return SourceLocation::getFromRawEncoding(Loc);
  580   void AddSourceLocation(SourceLocation Loc, RecordDataImpl &Record);
  848   void AddSourceLocation(SourceLocation Loc) {
tools/clang/include/clang/Serialization/Module.h
  201   SourceLocation DirectImportLoc;
  204   SourceLocation ImportLoc;
  207   SourceLocation FirstLoc;
tools/clang/include/clang/Serialization/ModuleManager.h
  249                             SourceLocation ImportLoc,
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h
  121   static bool isInCodeFile(SourceLocation SL, const SourceManager &SM) {
  129     SourceLocation IL = SM.getIncludeLoc(SM.getFileID(SL));
  146   bool isInCodeFile(SourceLocation SL) {
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
  154   SourceLocation Location;
  239     SourceLocation Loc = D->getLocation();
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h
  321   StringRef getMacroNameOrSpelling(SourceLocation &Loc);
tools/clang/include/clang/Tooling/Core/Diagnostic.h
   41                     SourceLocation Loc);
tools/clang/include/clang/Tooling/Core/Lookup.h
   42                               SourceLocation UseLoc,
tools/clang/include/clang/Tooling/Core/Replacement.h
   99   Replacement(const SourceManager &Sources, SourceLocation Start,
  133   void setFromSourceLocation(const SourceManager &Sources, SourceLocation Start,
  360                          const Node &NodeToReplace, StringRef ReplacementText,
tools/clang/include/clang/Tooling/FixIt.h
   37 inline CharSourceRange getSourceRange(const SourceLocation &Loc) {
   43 template <typename T> CharSourceRange getSourceRange(const T &Node) {
   56 template <typename T> FixItHint createRemoval(const T &Node) {
tools/clang/include/clang/Tooling/Refactoring/AtomicChange.h
   42   AtomicChange(const SourceManager &SM, SourceLocation KeyPosition);
   90   llvm::Error replace(const SourceManager &SM, SourceLocation Loc,
  101   llvm::Error insert(const SourceManager &SM, SourceLocation Loc,
tools/clang/include/clang/Tooling/Refactoring/RecursiveSymbolVisitor.h
   87     const SourceLocation TypeBeginLoc = Loc.getBeginLoc();
   88     const SourceLocation TypeEndLoc =
  109     const SourceLocation TypeEndLoc =
  129   bool visit(const NamedDecl *ND, SourceLocation BeginLoc,
  130              SourceLocation EndLoc) {
  134   bool visit(const NamedDecl *ND, SourceLocation Loc) {
tools/clang/include/clang/Tooling/Refactoring/RefactoringRuleContext.h
   57   llvm::Error createDiagnosticError(SourceLocation Loc, unsigned DiagID) {
tools/clang/include/clang/Tooling/Refactoring/Rename/SymbolOccurrences.h
   64                    ArrayRef<SourceLocation> Locations);
tools/clang/include/clang/Tooling/Refactoring/Rename/USRFinder.h
   35                                 const SourceLocation Point);
tools/clang/include/clang/Tooling/Syntax/Tokens.h
   55   FileRange(const SourceManager &SM, SourceLocation BeginLoc, unsigned Length);
   58   FileRange(const SourceManager &SM, SourceLocation BeginLoc,
   59             SourceLocation EndLoc);
  102   Token(SourceLocation Location, unsigned Length, tok::TokenKind Kind);
  108   SourceLocation location() const { return Location; }
  110   SourceLocation endLocation() const {
  138   SourceLocation Location;
  351   using PPExpansions = llvm::DenseMap</*SourceLocation*/ int, SourceLocation>;
tools/clang/include/clang/Tooling/Transformer/RewriteRule.h
  250 SourceLocation
tools/clang/lib/ARCMigrate/ARCMT.cpp
  312   std::vector<SourceLocation> ARCMTMacroLocs;
  433   std::vector<SourceLocation> &ARCMTMacroLocs;
  436   ARCMTMacroTrackerPPCallbacks(std::vector<SourceLocation> &ARCMTMacroLocs)
  447   std::vector<SourceLocation> &ARCMTMacroLocs;
  450   ARCMTMacroTrackerAction(std::vector<SourceLocation> &ARCMTMacroLocs)
  477   void insert(SourceLocation loc, StringRef text) override {
  496                             SourceLocation parentIndent) override {
  531   std::vector<SourceLocation> ARCMTMacroLocs;
tools/clang/lib/ARCMigrate/Internals.h
   61   void insert(SourceLocation loc, StringRef text);
   62   void insertAfterToken(SourceLocation loc, StringRef text);
   68   void replaceText(SourceLocation loc, StringRef text,
   71                            SourceLocation parentIndent);
   96   DiagnosticBuilder report(SourceLocation loc, unsigned diagId,
   98   void reportError(StringRef error, SourceLocation loc,
  100   void reportWarning(StringRef warning, SourceLocation loc,
  102   void reportNote(StringRef note, SourceLocation loc,
  113     virtual void insert(SourceLocation loc, StringRef text) = 0;
  116                                      SourceLocation parentIndent) = 0;
  152   std::vector<SourceLocation> &ARCMTMacroLocs;
  158                 std::vector<SourceLocation> &ARCMTMacroLocs)
tools/clang/lib/ARCMigrate/ObjCMT.cpp
   87   bool InsertFoundation(ASTContext &Ctx, SourceLocation Loc);
  274       SourceLocation BegLoc =
  277       SourceLocation EndLoc = Msg->getSelectorLoc(0);
  304       SourceLocation BegLoc =
  307       SourceLocation EndLoc = RHS->getBeginLoc();
  554   SourceLocation StartGetterSelectorLoc = Getter->getSelectorStartLoc();
  557   SourceLocation EndGetterSelectorLoc =
  563     SourceLocation EndLoc = Setter->getDeclaratorEndLoc();
  566     SourceLocation BeginOfSetterDclLoc = Setter->getBeginLoc();
  678   SourceLocation EndLoc =
  736   SourceLocation EndOfEnumDclLoc = EnumDcl->getEndLoc();
  746   SourceLocation EndTypedefDclLoc = TypedefDcl->getEndLoc();
  760     SourceLocation BeginOfEnumDclLoc = EnumDcl->getBeginLoc();
  787   SourceLocation EndLoc = EnumDcl->getBraceRange().getBegin();
  794   SourceLocation StartTypedefLoc = EnumDcl->getEndLoc();
  796   SourceLocation EndTypedefLoc = TypedefDcl->getEndLoc();
  827       SourceLocation EndLoc = Enumerator->getEndLoc();
 1413   SourceLocation EndLoc = LastFD->getEndLoc();
 1737                                               SourceLocation  Loc) {
 1765   void insert(SourceLocation loc, StringRef text) override {
 1797     void writeLoc(SourceLocation Loc) {
 1829   void insert(SourceLocation Loc, StringRef Text) override {
 2186     SourceLocation Loc =
tools/clang/lib/ARCMigrate/TransARCAssign.cpp
   46     SourceLocation OrigLoc = E->getExprLoc();
   47     SourceLocation Loc = OrigLoc;
tools/clang/lib/ARCMigrate/TransAutoreleasePool.cpp
  130           SourceLocation afterSemi =
  250     SourceLocation &referenceLoc, &declarationLoc;
  254                          SourceLocation &referenceLoc,
  255                          SourceLocation &declarationLoc)
  275     bool checkRef(SourceLocation refLoc, SourceLocation declLoc) {
  275     bool checkRef(SourceLocation refLoc, SourceLocation declLoc) {
  284     bool isInScope(SourceLocation loc) {
  300       SourceLocation referenceLoc, declarationLoc;
tools/clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp
   32                                        std::vector<SourceLocation> &MacroLocs,
   37   SourceLocation SemiLoc = S->getSemiLoc();
   45   std::vector<SourceLocation>::iterator I = llvm::upper_bound(
   48   SourceLocation
   68   SourceLocation AfterMacroSemiLoc = findSemiAfterLocation(AfterMacroLoc, Ctx);
   78   std::vector<SourceLocation> &MacroLocs;
   81   EmptyChecker(ASTContext &ctx, std::vector<SourceLocation> &macroLocs)
  185                         std::vector<SourceLocation> &MacroLocs) {
tools/clang/lib/ARCMigrate/TransGCAttrs.cpp
   90     SourceLocation Loc = OwnershipAttr->getLocation();
  168   bool isInMainFile(SourceLocation Loc) {
  220                             SourceLocation AtLoc,
  284     SourceLocation Loc = ATLs[i].first.getAttr()->getLocation();
  307       SourceLocation AtLoc = PD->getAtLoc();
  317     SourceLocation AtLoc = SourceLocation::getFromRawEncoding(I->first);
  317     SourceLocation AtLoc = SourceLocation::getFromRawEncoding(I->first);
tools/clang/lib/ARCMigrate/TransProperties.cpp
  133       SourceLocation atLoc = SourceLocation::getFromRawEncoding(I->first);
  133       SourceLocation atLoc = SourceLocation::getFromRawEncoding(I->first);
  147                     PropsTy &props, SourceLocation atLoc,
  170   void rewriteProperty(PropsTy &props, SourceLocation atLoc) {
  200                                     SourceLocation atLoc) const {
  214   void rewriteAssign(PropsTy &props, SourceLocation atLoc) const {
  244                                           SourceLocation atLoc) const {
  272   bool removeAttribute(StringRef fromAttr, SourceLocation atLoc) const {
  277                         SourceLocation atLoc) const {
  281   bool addAttribute(StringRef attr, SourceLocation atLoc) const {
  333   bool hasGCWeak(PropsTy &props, SourceLocation atLoc) const {
tools/clang/lib/ARCMigrate/TransProtectedScope.cpp
   75     SourceLocation NextLoc = S->getEndLoc();
  133     SourceLocation ErrLoc = DiagI->getLocation();
  190   bool isInRange(SourceLocation Loc, SourceRange R) {
tools/clang/lib/ARCMigrate/TransRetainReleaseDealloc.cpp
  327     SourceLocation Loc = Msg->getExprLoc();
  388   void clearDiagnostics(SourceLocation loc) const {
tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp
  108     SourceLocation loc = castExpr->getExprLoc();
  232         SourceLocation insertLoc = E->getSubExpr()->getBeginLoc();
  252       SourceLocation InsertLoc = WrapE->getBeginLoc();
  282     SourceLocation Loc = E->getExprLoc();
  286     SourceLocation InnerBegin = SM.getImmediateMacroCallerLoc(SubRange.getBegin());
  287     SourceLocation InnerEnd = SM.getImmediateMacroCallerLoc(SubRange.getEnd());
  336     SourceLocation CastLoc = E->getExprLoc();
tools/clang/lib/ARCMigrate/TransformActions.cpp
   45     SourceLocation Loc;
   68       SourceLocation beginLoc = range.getBegin(), endLoc = range.getEnd();
  115   std::vector<std::pair<CharRange, SourceLocation> > IndentationRanges;
  133   void insert(SourceLocation loc, StringRef text);
  134   void insertAfterToken(SourceLocation loc, StringRef text);
  140   void replaceText(SourceLocation loc, StringRef text,
  143                            SourceLocation parentIndent);
  150   bool canInsert(SourceLocation loc);
  151   bool canInsertAfterToken(SourceLocation loc);
  154   bool canReplaceText(SourceLocation loc, StringRef text);
  156   void commitInsert(SourceLocation loc, StringRef text);
  157   void commitInsertAfterToken(SourceLocation loc, StringRef text);
  161   void commitReplaceText(SourceLocation loc, StringRef text,
  163   void commitIncreaseIndentation(SourceRange range,SourceLocation parentIndent);
  167   void addInsertion(SourceLocation loc, StringRef text);
  177   static SourceLocation getLocForEndOfToken(SourceLocation loc,
  177   static SourceLocation getLocForEndOfToken(SourceLocation loc,
  284 void TransformActionsImpl::insert(SourceLocation loc, StringRef text) {
  294 void TransformActionsImpl::insertAfterToken(SourceLocation loc, StringRef text) {
  339 void TransformActionsImpl::replaceText(SourceLocation loc, StringRef text,
  359                                                SourceLocation parentIndent) {
  383 bool TransformActionsImpl::canInsert(SourceLocation loc) {
  396 bool TransformActionsImpl::canInsertAfterToken(SourceLocation loc) {
  418 bool TransformActionsImpl::canReplaceText(SourceLocation loc, StringRef text) {
  437 void TransformActionsImpl::commitInsert(SourceLocation loc, StringRef text) {
  441 void TransformActionsImpl::commitInsertAfterToken(SourceLocation loc,
  480 void TransformActionsImpl::commitReplaceText(SourceLocation loc,
  486   SourceLocation afterText = loc.getLocWithOffset(text.size());
  493                                                   SourceLocation parentIndent) {
  506 void TransformActionsImpl::addInsertion(SourceLocation loc, StringRef text) {
  560     SourceLocation loc = I->first;
  567   for (std::vector<std::pair<CharRange, SourceLocation> >::iterator
  591 SourceLocation TransformActionsImpl::getLocForEndOfToken(SourceLocation loc,
  591 SourceLocation TransformActionsImpl::getLocForEndOfToken(SourceLocation loc,
  629 void TransformActions::insert(SourceLocation loc, StringRef text) {
  633 void TransformActions::insertAfterToken(SourceLocation loc,
  659 void TransformActions::replaceText(SourceLocation loc, StringRef text,
  666                                            SourceLocation parentIndent) {
  680 DiagnosticBuilder TransformActions::report(SourceLocation loc, unsigned diagId,
  687 void TransformActions::reportError(StringRef message, SourceLocation loc,
  692 void TransformActions::reportWarning(StringRef message, SourceLocation loc,
  697 void TransformActions::reportNote(StringRef message, SourceLocation loc,
tools/clang/lib/ARCMigrate/Transforms.cpp
  117 SourceLocation trans::findLocationAfterSemi(SourceLocation loc,
  117 SourceLocation trans::findLocationAfterSemi(SourceLocation loc,
  119   SourceLocation SemiLoc = findSemiAfterLocation(loc, Ctx, IsDecl);
  129 SourceLocation trans::findSemiAfterLocation(SourceLocation loc,
  129 SourceLocation trans::findSemiAfterLocation(SourceLocation loc,
  381                                                 SourceLocation atLoc) {
  415   SourceLocation AttrLoc;
  462                                             SourceLocation atLoc) {
tools/clang/lib/ARCMigrate/Transforms.h
   88     SourceLocation Loc;
  115   bool removePropertyAttribute(StringRef fromAttr, SourceLocation atLoc) {
  119                                 SourceLocation atLoc);
  120   bool addPropertyAttribute(StringRef attr, SourceLocation atLoc);
  169 SourceLocation findLocationAfterSemi(SourceLocation loc, ASTContext &Ctx,
  169 SourceLocation findLocationAfterSemi(SourceLocation loc, ASTContext &Ctx,
  176 SourceLocation findSemiAfterLocation(SourceLocation loc, ASTContext &Ctx,
  176 SourceLocation findSemiAfterLocation(SourceLocation loc, ASTContext &Ctx,
tools/clang/lib/AST/ASTContext.cpp
  104 static SourceLocation getDeclLocForCommentSearch(const Decl *D,
  169     const SourceLocation DeclLoc = D->getLocation();
  194     const Decl *D, const SourceLocation RepresentativeLocForDecl,
  272   const SourceLocation DeclLoc = getDeclLocForCommentSearch(D, SourceMgr);
  491     const SourceLocation DeclLoc = getDeclLocForCommentSearch(D, SourceMgr);
 1153   SourceLocation Loc;
 1434                                           SourceLocation PointOfInstantiation) {
 2692                                                      SourceLocation L) const {
 3524                                    SourceLocation AttrLoc,
 3595                                            SourceLocation AttrLoc) const {
 3636                                                   SourceLocation AttrLoc) const {
 4152                                               SourceLocation NameLoc,
 5335                                SourceLocation NameLoc) const {
tools/clang/lib/AST/ASTImporter.cpp
   82   using ExpectedSLoc = llvm::Expected<SourceLocation>;
  146     LLVM_NODISCARD Error importInto(ImportT &To, const ImportT &From) {
  146     LLVM_NODISCARD Error importInto(ImportT &To, const ImportT &From) {
  176     Expected<T> import(const T &From) {
  176     Expected<T> import(const T &From) {
  189     Expected<std::tuple<T>>
  190     importSeq(const T &From) {
  191       Expected<T> ToOrErr = import(From);
  194       return std::make_tuple<T>(std::move(*ToOrErr));
  202     Expected<std::tuple<THead, TTail...>>
  202     Expected<std::tuple<THead, TTail...>>
  203     importSeq(const THead &FromHead, const TTail &...FromTail) {
  203     importSeq(const THead &FromHead, const TTail &...FromTail) {
  204       Expected<std::tuple<THead>> ToHeadOrErr = importSeq(FromHead);
  207       Expected<std::tuple<TTail...>> ToTailOrErr = importSeq(FromTail...);
  216       auto operator()(Args &&... args)
  217           -> decltype(ToDeclT::Create(std::forward<Args>(args)...)) {
  218         return ToDeclT::Create(std::forward<Args>(args)...);
  230                                                 Args &&... args) {
  246                                                 Args &&... args) {
  249                                             std::forward<Args>(args)...);
  257                                    FromDeclT *FromD, Args &&... args) {
  265       ToD = CreateFun(std::forward<Args>(args)...);
  358         DeclarationName &Name, NamedDecl *&ToD, SourceLocation &Loc);
  414       SourceLocation FromLAngleLoc, SourceLocation FromRAngleLoc,
  414       SourceLocation FromLAngleLoc, SourceLocation FromRAngleLoc,
  651     SourceLocation FromLAngleLoc, SourceLocation FromRAngleLoc,
  651     SourceLocation FromLAngleLoc, SourceLocation FromRAngleLoc,
  925   SourceLocation EllipsisLoc;
 1543     DeclarationName &Name, NamedDecl *&ToD, SourceLocation &Loc) {
 1853       SourceLocation EllipsisLoc;
 2157   SourceLocation ToLocation, ToRParenLoc;
 2181   SourceLocation Loc;
 2260   SourceLocation Loc;
 2269   SourceLocation ToNamespaceLoc, ToAliasLoc, ToTargetNameLoc;
 2299   SourceLocation Loc;
 2350   SourceLocation ToBeginLoc;
 2394   SourceLocation Loc;
 2450   SourceLocation Loc;
 2489   SourceLocation Loc;
 2541   SourceLocation ToBeginLoc;
 2584   SourceLocation Loc;
 2813   SourceLocation Loc;
 3010   SourceLocation Loc;
 3137   SourceLocation ToInnerLocStart, ToEndLoc;
 3364   SourceLocation Loc;
 3419   SourceLocation ToInnerLocStart;
 3449   SourceLocation Loc;
 3592   SourceLocation Loc;
 3621   SourceLocation ToInnerLocStart;
 3657   SourceLocation Loc;
 3742   SourceLocation ToInnerLocStart;
 3796   SourceLocation ToLocation;
 3840   SourceLocation ToLocation, ToInnerLocStart;
 3881   SourceLocation Loc;
 3953   SourceLocation ToEndLoc;
 3989   SmallVector<SourceLocation, 12> FromSelLocs;
 3991   SmallVector<SourceLocation, 12> ToSelLocs(FromSelLocs.size());
 4006   SourceLocation Loc;
 4013   SourceLocation ToVarianceLoc, ToLocation, ToColonLoc;
 4038   SourceLocation Loc;
 4054     SourceLocation ToAtStartLoc, ToCategoryNameLoc;
 4055     SourceLocation ToIvarLBraceLoc, ToIvarRBraceLoc;
 4085     SmallVector<SourceLocation, 4> ProtocolLocs;
 4141   SmallVector<SourceLocation, 4> ProtocolLocs;
 4187   SourceLocation Loc;
 4265   SourceLocation Loc;
 4272   SourceLocation ToLoc, ToUsingLoc;
 4316   SourceLocation Loc;
 4358   SourceLocation Loc;
 4370   SourceLocation ToUsingLoc, ToNamespaceKeyLocation, ToIdentLocation;
 4401   SourceLocation Loc;
 4408   SourceLocation ToLoc, ToUsingLoc, ToEllipsisLoc;
 4438   SourceLocation Loc;
 4445   SourceLocation ToUsingLoc, ToTypenameLoc, ToEllipsisLoc;
 4520   SmallVector<SourceLocation, 4> ProtocolLocs;
 4611   SourceLocation Loc;
 4673     SourceLocation ToLocation, ToAtStartLoc, ToCategoryNameLoc;
 4718     SourceLocation ToLocation, ToAtStartLoc, ToSuperClassLoc;
 4719     SourceLocation ToIvarLBraceLoc, ToIvarRBraceLoc;
 4787   SourceLocation Loc;
 4819   SourceLocation ToAtLoc, ToLParenLoc;
 4836   SourceLocation ToGetterNameLoc, ToSetterNameLoc;
 4887     SourceLocation ToBeginLoc, ToLocation, ToPropertyIvarDeclLoc;
 4971   SourceLocation ToLocation, ToInnerLocStart;
 5041   SourceLocation Loc;
 5335   SourceLocation Loc;
 5561   SourceLocation Loc;
 5734   SourceLocation ToBeginLoc, ToEndLoc;
 5776   SourceLocation ToCaseLoc, ToEllipsisLoc, ToColonLoc;
 5792   SourceLocation ToDefaultLoc, ToColonLoc;
 5805   SourceLocation ToIdentLoc;
 5837   SourceLocation ToIfLoc, ToElseLoc;
 5860   SourceLocation ToSwitchLoc;
 5894   SourceLocation ToWhileLoc;
 5910   SourceLocation ToDoLoc, ToWhileLoc, ToRParenLoc;
 5928   SourceLocation ToForLoc, ToLParenLoc, ToRParenLoc;
 5945   SourceLocation ToGotoLoc, ToLabelLoc;
 5957   SourceLocation ToGotoLoc, ToStarLoc;
 5985   SourceLocation ToReturnLoc;
 6000   SourceLocation ToCatchLoc;
 6048   SourceLocation ToForLoc, ToCoawaitLoc, ToColonLoc, ToRParenLoc;
 6066   SourceLocation ToForLoc, ToRParenLoc;
 6083   SourceLocation ToAtCatchLoc, ToRParenLoc;
 6109   SourceLocation ToAtTryLoc;
 6135   SourceLocation ToAtSynchronizedLoc;
 6183   SourceLocation ToBuiltinLoc, ToRParenLoc;
 6204   SourceLocation ToBuiltinLoc, ToRParenLoc;
 6241   SourceLocation ToBeginLoc;
 6258   SourceLocation ToTemplateKeywordLoc, ToLocation;
 6399   SmallVector<SourceLocation, 4> ToLocations(E->getNumConcatenated());
 6416   SourceLocation ToLParenLoc;
 6433   SourceLocation ToBuiltinLoc, ToRParenLoc;
 6453   SourceLocation ToAmpAmpLoc, ToLabelLoc;
 6485   SourceLocation ToLParen, ToRParen;
 6518   SourceLocation ToLParenLoc, ToRParenLoc;
 6533   SourceLocation ToOperatorLoc;
 6548   SourceLocation ToOperatorLoc, ToRParenLoc;
 6578   SourceLocation  ToOperatorLoc;
 6594   SourceLocation ToQuestionLoc, ToColonLoc;
 6613   SourceLocation ToQuestionLoc, ToColonLoc;
 6632   SourceLocation ToBeginLoc, ToEndLoc;
 6651   SourceLocation ToBeginLoc, ToEndLoc;
 6667   SourceLocation ToLocation;
 6683   SourceLocation ToRBracketLoc;
 6702   SourceLocation ToOperatorLoc;
 6810     SourceLocation ToBeginLoc, ToEndLoc;
 6861   SourceLocation ToOperatorLoc, ToRParenLoc;
 6877   SourceLocation ToBeginLoc, ToEndLoc;
 6897   SourceLocation ToThrowLoc;
 6945   SourceLocation ToRParenLoc;
 7020   SourceLocation ToEllipsisLoc;
 7033   SourceLocation ToOperatorLoc, ToPackLoc, ToRParenLoc;
 7097   SourceLocation ToBeginLoc;
 7114   SourceLocation ToLocation;
 7153   SourceLocation ToRParenLoc;
 7198   SourceLocation ToOperatorLoc, ToTemplateKeywordLoc;
 7213   SourceLocation ToLoc, ToLAngleLoc, ToRAngleLoc;
 7246   SourceLocation ToOperatorLoc, ToColonColonLoc, ToTildeLoc;
 7281   SourceLocation ToOperatorLoc, ToTemplateKeywordLoc;
 7330   SourceLocation ToTemplateKeywordLoc, ToExprLoc, ToLAngleLoc, ToRAngleLoc;
 7361   SourceLocation ToLParenLoc, ToRParenLoc;
 7433   SourceLocation ToOperatorLoc, ToTemplateKeywordLoc;
 7482   SourceLocation ToRParenLoc;
 7532   SourceLocation ToCaptureDefaultLoc, ToEndLoc;
 7548   SourceLocation ToLBraceLoc, ToRBraceLoc;
 7609   SourceLocation ToLocation;
 7666   SourceLocation ToOperatorLoc, ToRParenLoc;
 7708   SourceLocation ToExprLoc;
 7724   SourceLocation ToBeginLoc, ToEndLoc;
 8236     SourceLocation ToLocalBeginLoc, ToLocalEndLoc;
 8264       SourceLocation ToTLoc;
 8387 Expected<SourceLocation> ASTImporter::Import(SourceLocation FromLoc) {
 8387 Expected<SourceLocation> ASTImporter::Import(SourceLocation FromLoc) {
 8403   SourceLocation ToBegin, ToEnd;
 8432     SourceLocation MLoc;
 8514     SourceLocation EllipsisLoc;
 8725 DiagnosticBuilder ASTImporter::ToDiag(SourceLocation Loc, unsigned DiagID) {
 8733 DiagnosticBuilder ASTImporter::FromDiag(SourceLocation Loc, unsigned DiagID) {
tools/clang/lib/AST/ASTStructuralEquivalence.cpp
 1598 DiagnosticBuilder StructuralEquivalenceContext::Diag1(SourceLocation Loc,
 1607 DiagnosticBuilder StructuralEquivalenceContext::Diag2(SourceLocation Loc,
tools/clang/lib/AST/CommentLexer.cpp
  410           SourceLocation Loc = getSourceLocation(BufferPtr);
  411           SourceLocation EndLoc = getSourceLocation(TokenPtr);
  742              const CommandTraits &Traits, SourceLocation FileLoc,
  854   SourceLocation Loc = Tok.getLocation();
tools/clang/lib/AST/CommentParser.cpp
   45     SourceLocation BufferStartLoc;
   67   SourceLocation getSourceLocation() const {
  131                           SourceLocation Loc,
  162     SourceLocation Loc = getSourceLocation();
  195     SourceLocation Loc = getSourceLocation();
  547   SourceLocation Loc;
  712   SourceLocation TextBegin;
tools/clang/lib/AST/CommentSema.cpp
   50                                       SourceLocation LocBegin,
   51                                       SourceLocation LocEnd,
   80                                       SourceLocation LocBegin,
   81                                       SourceLocation LocEnd,
  228                                          SourceLocation ArgLocBegin,
  229                                          SourceLocation ArgLocEnd,
  257                                          SourceLocation ArgLocBegin,
  258                                          SourceLocation ArgLocEnd,
  281                                       SourceLocation LocBegin,
  282                                       SourceLocation LocEnd,
  299                                           SourceLocation ArgLocBegin,
  300                                           SourceLocation ArgLocEnd,
  363 InlineCommandComment *Sema::actOnInlineCommand(SourceLocation CommandLocBegin,
  364                                                SourceLocation CommandLocEnd,
  376 InlineCommandComment *Sema::actOnInlineCommand(SourceLocation CommandLocBegin,
  377                                                SourceLocation CommandLocEnd,
  379                                                SourceLocation ArgLocBegin,
  380                                                SourceLocation ArgLocEnd,
  396 InlineContentComment *Sema::actOnUnknownCommand(SourceLocation LocBegin,
  397                                                 SourceLocation LocEnd,
  403 InlineContentComment *Sema::actOnUnknownCommand(SourceLocation LocBegin,
  404                                                 SourceLocation LocEnd,
  413 TextComment *Sema::actOnText(SourceLocation LocBegin,
  414                              SourceLocation LocEnd,
  419 VerbatimBlockComment *Sema::actOnVerbatimBlockStart(SourceLocation Loc,
  428 VerbatimBlockLineComment *Sema::actOnVerbatimBlockLine(SourceLocation Loc,
  435                             SourceLocation CloseNameLocBegin,
  442 VerbatimLineComment *Sema::actOnVerbatimLine(SourceLocation LocBegin,
  444                                              SourceLocation TextBegin,
  457 HTMLStartTagComment *Sema::actOnHTMLStartTagStart(SourceLocation LocBegin,
  465                               SourceLocation GreaterLoc,
  475 HTMLEndTagComment *Sema::actOnHTMLEndTag(SourceLocation LocBegin,
  476                                          SourceLocation LocEnd,
  568     SourceLocation DiagLoc;
tools/clang/lib/AST/DataCollection.cpp
   19                            ASTContext &Context, SourceLocation Loc) {
   33 std::string getMacroStack(SourceLocation Loc, ASTContext &Context) {
tools/clang/lib/AST/Decl.cpp
   80   SourceLocation Loc = this->Loc;
 1805 static SourceLocation getTemplateOrInnerLocStart(const DeclT *decl) {
 1812 SourceLocation DeclaratorDecl::getTypeSpecStartLoc() const {
 1864 SourceLocation DeclaratorDecl::getOuterLocStart() const {
 1905   SourceLocation RangeEnd = getLocation();
 1949                  SourceLocation StartLoc, SourceLocation IdLoc,
 1949                  SourceLocation StartLoc, SourceLocation IdLoc,
 1966                          SourceLocation StartL, SourceLocation IdL,
 1966                          SourceLocation StartL, SourceLocation IdL,
 2007     SourceLocation InitEnd = Init->getEndLoc();
 2555 SourceLocation VarDecl::getPointOfInstantiation() const {
 2619                                          SourceLocation PointOfInstantiation) {
 2658                                  SourceLocation StartLoc,
 2659                                  SourceLocation IdLoc, IdentifierInfo *Id,
 2765                            SourceLocation StartLoc,
 3347   SourceLocation Boundary = getNameInfo().getBeginLoc();
 3623                                           SourceLocation PointOfInstantiation) {
 3735                                           SourceLocation PointOfInstantiation) {
 3761 SourceLocation FunctionDecl::getPointOfInstantiation() const {
 3928                              SourceLocation StartLoc, SourceLocation IdLoc,
 3928                              SourceLocation StartLoc, SourceLocation IdLoc,
 4039                  SourceLocation L, IdentifierInfo *Id, TagDecl *PrevDecl,
 4040                  SourceLocation StartL)
 4054 SourceLocation TagDecl::getOuterLocStart() const {
 4059   SourceLocation RBraceLoc = BraceRange.getEnd();
 4060   SourceLocation E = RBraceLoc.isValid() ? RBraceLoc : getLocation();
 4156 EnumDecl::EnumDecl(ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
 4157                    SourceLocation IdLoc, IdentifierInfo *Id, EnumDecl *PrevDecl,
 4174                            SourceLocation StartLoc, SourceLocation IdLoc,
 4174                            SourceLocation StartLoc, SourceLocation IdLoc,
 4234                                          SourceLocation PointOfInstantiation) {
 4288                        DeclContext *DC, SourceLocation StartLoc,
 4289                        SourceLocation IdLoc, IdentifierInfo *Id,
 4309                                SourceLocation StartLoc, SourceLocation IdLoc,
 4309                                SourceLocation StartLoc, SourceLocation IdLoc,
 4457 BlockDecl::BlockDecl(DeclContext *DC, SourceLocation CaretLoc)
 4518                                              SourceLocation CommentLoc,
 4540                                  SourceLocation Loc, StringRef Name,
 4571                              SourceLocation IdentL, IdentifierInfo *II) {
 4576                              SourceLocation IdentL, IdentifierInfo *II,
 4577                              SourceLocation GnuLabelL) {
 4607                                              SourceLocation IdLoc,
 4624                                    SourceLocation StartLoc,
 4643 BlockDecl *BlockDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L) {
 4674                                            SourceLocation L,
 4689                                      SourceLocation L, DeclarationName N,
 4701 IndirectFieldDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L,
 4714   SourceLocation End = getLocation();
 4723                                  SourceLocation StartLoc, SourceLocation IdLoc,
 4723                                  SourceLocation StartLoc, SourceLocation IdLoc,
 4751         SourceLocation TTLoc = getLocation();
 4752         SourceLocation TDLoc = TD->getLocation();
 4773                                      SourceLocation StartLoc,
 4774                                      SourceLocation IdLoc, IdentifierInfo *Id,
 4785   SourceLocation RangeEnd = getLocation();
 4794   SourceLocation RangeEnd = getBeginLoc();
 4804                                            SourceLocation AsmLoc,
 4805                                            SourceLocation RParenLoc) {
 4817 EmptyDecl *EmptyDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L) {
 4840 ImportDecl::ImportDecl(DeclContext *DC, SourceLocation StartLoc,
 4842                        ArrayRef<SourceLocation> IdentifierLocs)
 4845   auto *StoredLocs = getTrailingObjects<SourceLocation>();
 4845   auto *StoredLocs = getTrailingObjects<SourceLocation>();
 4850 ImportDecl::ImportDecl(DeclContext *DC, SourceLocation StartLoc,
 4851                        Module *Imported, SourceLocation EndLoc)
 4853   *getTrailingObjects<SourceLocation>() = EndLoc;
 4857                                SourceLocation StartLoc, Module *Imported,
 4858                                ArrayRef<SourceLocation> IdentifierLocs) {
 4860               additionalSizeToAlloc<SourceLocation>(IdentifierLocs.size()))
 4865                                        SourceLocation StartLoc,
 4867                                        SourceLocation EndLoc) {
 4868   ImportDecl *Import = new (C, DC, additionalSizeToAlloc<SourceLocation>(1))
 4876   return new (C, ID, additionalSizeToAlloc<SourceLocation>(NumLocations))
 4880 ArrayRef<SourceLocation> ImportDecl::getIdentifierLocs() const {
 4884   const auto *StoredLocs = getTrailingObjects<SourceLocation>();
 4884   const auto *StoredLocs = getTrailingObjects<SourceLocation>();
 4891     return SourceRange(getLocation(), *getTrailingObjects<SourceLocation>());
 4903                                SourceLocation ExportLoc) {
tools/clang/lib/AST/DeclBase.cpp
  269   SourceLocation TheLoc = Loc;
  896 SourceLocation Decl::getBodyRBrace() const {
tools/clang/lib/AST/DeclCXX.cpp
  118                              DeclContext *DC, SourceLocation StartLoc,
  119                              SourceLocation IdLoc, IdentifierInfo *Id,
  126                                      DeclContext *DC, SourceLocation StartLoc,
  127                                      SourceLocation IdLoc, IdentifierInfo *Id,
  142                             TypeSourceInfo *Info, SourceLocation Loc,
 1952     ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
 1954     TypeSourceInfo *TInfo, SourceLocation EndLocation) {
 2040                                      SourceLocation StartLoc,
 2045                                      SourceLocation EndLocation) {
 2356                                        SourceLocation L, Expr *Init,
 2357                                        SourceLocation R,
 2358                                        SourceLocation EllipsisLoc)
 2365                                        SourceLocation MemberLoc,
 2366                                        SourceLocation L, Expr *Init,
 2367                                        SourceLocation R)
 2374                                        SourceLocation MemberLoc,
 2375                                        SourceLocation L, Expr *Init,
 2376                                        SourceLocation R)
 2383                                        SourceLocation L, Expr *Init,
 2384                                        SourceLocation R)
 2407 SourceLocation CXXCtorInitializer::getSourceLocation() const {
 2432     ASTContext &C, CXXRecordDecl *RD, SourceLocation StartLoc,
 2470     ASTContext &C, CXXRecordDecl *RD, SourceLocation StartLoc,
 2607     ASTContext &C, CXXRecordDecl *RD, SourceLocation StartLoc,
 2638     ASTContext &C, CXXRecordDecl *RD, SourceLocation StartLoc,
 2641     SourceLocation EndLocation) {
 2655 LinkageSpecDecl::LinkageSpecDecl(DeclContext *DC, SourceLocation ExternLoc,
 2656                                  SourceLocation LangLoc, LanguageIDs lang,
 2668                                          SourceLocation ExternLoc,
 2669                                          SourceLocation LangLoc,
 2684                                                SourceLocation L,
 2685                                                SourceLocation NamespaceLoc,
 2687                                                SourceLocation IdentLoc,
 2711                              SourceLocation StartLoc, SourceLocation IdLoc,
 2711                              SourceLocation StartLoc, SourceLocation IdLoc,
 2723                                      bool Inline, SourceLocation StartLoc,
 2724                                      SourceLocation IdLoc, IdentifierInfo *Id,
 2778                                                SourceLocation UsingLoc,
 2779                                                SourceLocation AliasLoc,
 2782                                                SourceLocation IdentLoc,
 2802                                  SourceLocation Loc, UsingDecl *Using,
 2832                                    SourceLocation Loc, UsingDecl *Using,
 2880 UsingDecl *UsingDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation UL,
 2894   SourceLocation Begin = isAccessDeclaration()
 2923                                  SourceLocation UsingLoc,
 2926                                  SourceLocation EllipsisLoc) {
 2942   SourceLocation Begin = isAccessDeclaration()
 2951                                     SourceLocation UsingLoc,
 2952                                     SourceLocation TypenameLoc,
 2954                                     SourceLocation TargetNameLoc,
 2956                                     SourceLocation EllipsisLoc) {
 2972                                            SourceLocation StaticAssertLoc,
 2975                                            SourceLocation RParenLoc,
 2990                                  SourceLocation IdLoc, IdentifierInfo *Id) {
 3020                                              SourceLocation StartLoc,
 3021                                              SourceLocation LSquareLoc,
 3060                                        SourceLocation L, DeclarationName N,
 3062                                        SourceLocation StartL,
tools/clang/lib/AST/DeclFriend.cpp
   35                                SourceLocation L,
   37                                SourceLocation FriendL,
tools/clang/lib/AST/DeclObjC.cpp
   54                            const SourceLocation *Locs, ASTContext &Ctx) {
   58   Locations = new (Ctx) SourceLocation[Elts];
   59   memcpy(Locations, Locs, sizeof(SourceLocation) * Elts);
   68                                      IdentifierInfo *Id, SourceLocation nameLoc,
   69                                      SourceLocation atStartLoc)
  357 SourceLocation ObjCInterfaceDecl::getSuperClassLoc() const {
  778 ObjCMethodDecl::ObjCMethodDecl(SourceLocation beginLoc, SourceLocation endLoc,
  778 ObjCMethodDecl::ObjCMethodDecl(SourceLocation beginLoc, SourceLocation endLoc,
  810     ASTContext &C, SourceLocation beginLoc, SourceLocation endLoc,
  810     ASTContext &C, SourceLocation beginLoc, SourceLocation endLoc,
  864                                          ArrayRef<SourceLocation> SelLocs) {
  870   static_assert(alignof(ParmVarDecl *) >= alignof(SourceLocation),
  874                   sizeof(SourceLocation) * SelLocs.size();
  881                                SmallVectorImpl<SourceLocation> &SelLocs) const {
  888                                      ArrayRef<SourceLocation> SelLocs) {
  979 SourceLocation ObjCMethodDecl::getEndLoc() const {
 1386                                              SourceLocation varianceLoc,
 1388                                              SourceLocation nameLoc,
 1390                                              SourceLocation colonLoc,
 1409   SourceLocation startLoc = VarianceLoc;
 1424 ObjCTypeParamList::ObjCTypeParamList(SourceLocation lAngleLoc,
 1426                                      SourceLocation rAngleLoc)
 1435                      SourceLocation lAngleLoc,
 1437                      SourceLocation rAngleLoc) {
 1457                                              SourceLocation atLoc,
 1461                                              SourceLocation ClassLoc,
 1481                                      SourceLocation AtLoc, IdentifierInfo *Id,
 1483                                      SourceLocation CLoc,
 1748                                    SourceLocation StartLoc,
 1749                                    SourceLocation IdLoc, IdentifierInfo *Id,
 1826                              SourceLocation StartLoc,  SourceLocation IdLoc,
 1826                              SourceLocation StartLoc,  SourceLocation IdLoc,
 1845                                    IdentifierInfo *Id, SourceLocation nameLoc,
 1846                                    SourceLocation atStartLoc,
 1857                                            SourceLocation nameLoc,
 1858                                            SourceLocation atStartLoc,
 1973 ObjCCategoryDecl::ObjCCategoryDecl(DeclContext *DC, SourceLocation AtLoc,
 1974                                    SourceLocation ClassNameLoc,
 1975                                    SourceLocation CategoryNameLoc,
 1978                                    SourceLocation IvarLBraceLoc,
 1979                                    SourceLocation IvarRBraceLoc)
 1987                                            SourceLocation AtLoc,
 1988                                            SourceLocation ClassNameLoc,
 1989                                            SourceLocation CategoryNameLoc,
 1993                                            SourceLocation IvarLBraceLoc,
 1994                                            SourceLocation IvarRBraceLoc) {
 2047                              SourceLocation nameLoc,
 2048                              SourceLocation atStartLoc,
 2049                              SourceLocation CategoryNameLoc) {
 2151                                SourceLocation nameLoc,
 2152                                SourceLocation atStartLoc,
 2153                                SourceLocation superLoc,
 2154                                SourceLocation IvarLBraceLoc,
 2155                                SourceLocation IvarRBraceLoc) {
 2200                                 SourceLocation L,
 2219                                            SourceLocation L,
 2221                                            SourceLocation AtLoc,
 2222                                            SourceLocation LParenLoc,
 2248                                                    SourceLocation atLoc,
 2249                                                    SourceLocation L,
 2253                                                    SourceLocation ivarLoc) {
 2266   SourceLocation EndLoc = getLocation();
tools/clang/lib/AST/DeclOpenMP.cpp
   30                                                    SourceLocation L,
   62                                          SourceLocation L, ArrayRef<Expr *> VL,
  105                                          SourceLocation L,
  135     Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name,
  145     ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name,
  175 OMPDeclareMapperDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L,
  236                                                  SourceLocation StartLoc) {
tools/clang/lib/AST/DeclTemplate.cpp
   46 TemplateParameterList::TemplateParameterList(SourceLocation TemplateLoc,
   47                                              SourceLocation LAngleLoc,
   49                                              SourceLocation RAngleLoc,
   79 TemplateParameterList::Create(const ASTContext &C, SourceLocation TemplateLoc,
   80                               SourceLocation LAngleLoc,
   82                               SourceLocation RAngleLoc, Expr *RequiresClause) {
  165 TemplateDecl::TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L,
  281                                                    SourceLocation L,
  380                                              SourceLocation L,
  514                              SourceLocation KeyLoc, SourceLocation NameLoc,
  514                              SourceLocation KeyLoc, SourceLocation NameLoc,
  530 SourceLocation TemplateTypeParmDecl::getDefaultArgumentLoc() const {
  565     DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, unsigned D,
  565     DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, unsigned D,
  583                                 SourceLocation StartLoc, SourceLocation IdLoc,
  583                                 SourceLocation StartLoc, SourceLocation IdLoc,
  592     const ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
  593     SourceLocation IdLoc, unsigned D, unsigned P, IdentifierInfo *Id,
  630 SourceLocation NonTypeTemplateParmDecl::getDefaultArgumentLoc() const {
  643     DeclContext *DC, SourceLocation L, unsigned D, unsigned P,
  656                                  SourceLocation L, unsigned D, unsigned P,
  665                                  SourceLocation L, unsigned D, unsigned P,
  691 SourceLocation TemplateTemplateParmDecl::getDefaultArgumentLoc() const {
  724     const TemplateArgumentListInfo *TemplateArgsAsWritten, SourceLocation POI,
  743                                 DeclContext *DC, SourceLocation StartLoc,
  744                                 SourceLocation IdLoc,
  764                                         SourceLocation StartLoc,
  765                                         SourceLocation IdLoc,
  813     SourceLocation Begin = getTemplateKeywordLoc();
  821       SourceLocation End = getBraceRange().getEnd();
  853                                  SourceLocation L, DeclarationName Name,
  877                                        SourceLocation StartLoc,
  878                                        SourceLocation IdLoc,
  896        SourceLocation StartLoc, SourceLocation IdLoc,
  896        SourceLocation StartLoc, SourceLocation IdLoc,
  933                            SourceLocation L,
  935                            FriendUnion Friend, SourceLocation FLoc) {
  950                                                      SourceLocation L,
  999                                          SourceLocation L, DeclarationName Name,
 1094     Kind DK, ASTContext &Context, DeclContext *DC, SourceLocation StartLoc,
 1095     SourceLocation IdLoc, VarTemplateDecl *SpecializedTemplate, QualType T,
 1110     ASTContext &Context, DeclContext *DC, SourceLocation StartLoc,
 1111     SourceLocation IdLoc, VarTemplateDecl *SpecializedTemplate, QualType T,
 1160     ASTContext &Context, DeclContext *DC, SourceLocation StartLoc,
 1161     SourceLocation IdLoc, TemplateParameterList *Params,
 1176     ASTContext &Context, DeclContext *DC, SourceLocation StartLoc,
 1177     SourceLocation IdLoc, TemplateParameterList *Params,
tools/clang/lib/AST/DeclarationName.cpp
  488 SourceLocation DeclarationNameInfo::getEndLocPrivate() const {
  496     return SourceLocation::getFromRawEncoding(raw);
  501     return SourceLocation::getFromRawEncoding(raw);
tools/clang/lib/AST/Expr.cpp
  205   SourceLocation getExprLocImpl(const Expr *expr,
  215   SourceLocation getExprLocImpl(const Expr *expr,
  221 SourceLocation Expr::getExprLoc() const {
  479                          ExprValueKind VK, SourceLocation L,
  497                          SourceLocation TemplateKWLoc, ValueDecl *D,
  544                                  SourceLocation TemplateKWLoc, ValueDecl *D,
  546                                  SourceLocation NameLoc, QualType T,
  558                                  SourceLocation TemplateKWLoc, ValueDecl *D,
  598 SourceLocation DeclRefExpr::getBeginLoc() const {
  603 SourceLocation DeclRefExpr::getEndLoc() const {
  609 PredefinedExpr::PredefinedExpr(SourceLocation L, QualType FNTy, IdentKind IK,
  630 PredefinedExpr *PredefinedExpr::Create(const ASTContext &Ctx, SourceLocation L,
  914                                QualType type, SourceLocation l)
  926                        QualType type, SourceLocation l) {
  936                                      QualType type, SourceLocation l,
  950                                                        SourceLocation l,
  966                                  bool isexact, QualType Type, SourceLocation L)
  982                         bool isexact, QualType Type, SourceLocation L) {
 1029                              const SourceLocation *Loc,
 1066   std::memcpy(getTrailingObjects<SourceLocation>(), Loc,
 1067               NumConcatenated * sizeof(SourceLocation));
 1083                                      const SourceLocation *Loc,
 1085   void *Mem = Ctx.Allocate(totalSizeToAlloc<unsigned, SourceLocation, char>(
 1096   void *Mem = Ctx.Allocate(totalSizeToAlloc<unsigned, SourceLocation, char>(
 1215 SourceLocation
 1236     SourceLocation StrTokLoc = getStrTokenLoc(TokNo);
 1241     SourceLocation StrTokSpellingLoc = SM.getSpellingLoc(StrTokLoc);
 1337                    SourceLocation RParenLoc, unsigned MinNumArgs,
 1383                            SourceLocation RParenLoc, unsigned MinNumArgs,
 1395                                     ExprValueKind VK, SourceLocation RParenLoc,
 1528 SourceLocation CallExpr::getBeginLoc() const {
 1532   SourceLocation begin = getCallee()->getBeginLoc();
 1537 SourceLocation CallExpr::getEndLoc() const {
 1541   SourceLocation end = getRParenLoc();
 1548                                    SourceLocation OperatorLoc,
 1552                                    SourceLocation RParenLoc) {
 1568                            SourceLocation OperatorLoc, TypeSourceInfo *tsi,
 1570                            SourceLocation RParenLoc)
 1603     SourceLocation op, SourceLocation rp)
 1603     SourceLocation op, SourceLocation rp)
 1639 MemberExpr::MemberExpr(Expr *Base, bool IsArrow, SourceLocation OperatorLoc,
 1660     const ASTContext &C, Expr *Base, bool IsArrow, SourceLocation OperatorLoc,
 1661     NestedNameSpecifierLoc QualifierLoc, SourceLocation TemplateKWLoc,
 1734 SourceLocation MemberExpr::getBeginLoc() const {
 1743   SourceLocation BaseStartLoc = getBase()->getBeginLoc();
 1748 SourceLocation MemberExpr::getEndLoc() const {
 1749   SourceLocation EndLoc = getMemberNameInfo().getEndLoc();
 2011                                        SourceLocation L, SourceLocation R) {
 2011                                        SourceLocation L, SourceLocation R) {
 2151                              SourceLocation BLoc, SourceLocation RParenLoc,
 2151                              SourceLocation BLoc, SourceLocation RParenLoc,
 2175   SourceLocation Loc;
 2219 InitListExpr::InitListExpr(const ASTContext &C, SourceLocation lbraceloc,
 2220                            ArrayRef<Expr*> initExprs, SourceLocation rbraceloc)
 2320 SourceLocation InitListExpr::getBeginLoc() const {
 2323   SourceLocation Beg = LBraceLoc;
 2338 SourceLocation InitListExpr::getEndLoc() const {
 2341   SourceLocation End = RBraceLoc;
 2364 SourceLocation BlockExpr::getCaretLocation() const {
 2383 bool Expr::isUnusedResultAWarning(const Expr *&WarnE, SourceLocation &Loc,
 4099                                      QualType Type, SourceLocation BLoc,
 4100                                      SourceLocation RP)
 4131     const ASTContext &, SourceLocation GenericLoc, Expr *ControllingExpr,
 4133     SourceLocation DefaultLoc, SourceLocation RParenLoc,
 4133     SourceLocation DefaultLoc, SourceLocation RParenLoc,
 4158     const ASTContext &Context, SourceLocation GenericLoc, Expr *ControllingExpr,
 4160     SourceLocation DefaultLoc, SourceLocation RParenLoc,
 4160     SourceLocation DefaultLoc, SourceLocation RParenLoc,
 4185     const ASTContext &Context, SourceLocation GenericLoc, Expr *ControllingExpr,
 4187     SourceLocation DefaultLoc, SourceLocation RParenLoc,
 4187     SourceLocation DefaultLoc, SourceLocation RParenLoc,
 4199     const ASTContext &Context, SourceLocation GenericLoc, Expr *ControllingExpr,
 4201     SourceLocation DefaultLoc, SourceLocation RParenLoc,
 4201     SourceLocation DefaultLoc, SourceLocation RParenLoc,
 4235                                        SourceLocation EqualOrColonLoc,
 4302                            SourceLocation ColonOrEqualLoc,
 4335 SourceLocation DesignatedInitExpr::getBeginLoc() const {
 4336   SourceLocation StartLoc;
 4341       StartLoc = SourceLocation::getFromRawEncoding(First.Field.FieldLoc);
 4343       StartLoc = SourceLocation::getFromRawEncoding(First.Field.DotLoc);
 4346       SourceLocation::getFromRawEncoding(First.ArrayOrRange.LBracketLoc);
 4350 SourceLocation DesignatedInitExpr::getEndLoc() const {
 4399     SourceLocation lBraceLoc, Expr *baseExpr, SourceLocation rBraceLoc)
 4399     SourceLocation lBraceLoc, Expr *baseExpr, SourceLocation rBraceLoc)
 4409 SourceLocation DesignatedInitUpdateExpr::getBeginLoc() const {
 4413 SourceLocation DesignatedInitUpdateExpr::getEndLoc() const {
 4417 ParenListExpr::ParenListExpr(SourceLocation LParenLoc, ArrayRef<Expr *> Exprs,
 4418                              SourceLocation RParenLoc)
 4444                                      SourceLocation LParenLoc,
 4446                                      SourceLocation RParenLoc) {
 4560 AtomicExpr::AtomicExpr(SourceLocation BLoc, ArrayRef<Expr*> args,
 4561                        QualType t, AtomicOp op, SourceLocation RP)
tools/clang/lib/AST/ExprCXX.cpp
  161 SourceLocation CXXScalarValueInitExpr::getBeginLoc() const {
  334                 Expr *Base, bool isArrow, SourceLocation OperatorLoc,
  336                 SourceLocation ColonColonLoc, SourceLocation TildeLoc,
  336                 SourceLocation ColonColonLoc, SourceLocation TildeLoc,
  375 SourceLocation CXXPseudoDestructorExpr::getEndLoc() const {
  376   SourceLocation End = DestroyedType.getLocation();
  385     NestedNameSpecifierLoc QualifierLoc, SourceLocation TemplateKWLoc,
  419     NestedNameSpecifierLoc QualifierLoc, SourceLocation TemplateKWLoc,
  449                            SourceLocation TemplateKWLoc,
  526     SourceLocation TemplateKWLoc, const DeclarationNameInfo &NameInfo,
  557     SourceLocation TemplateKWLoc, const DeclarationNameInfo &NameInfo,
  586 SourceLocation CXXConstructExpr::getBeginLoc() const {
  592 SourceLocation CXXConstructExpr::getEndLoc() const {
  599   SourceLocation End = getLocation();
  603       SourceLocation NewEnd = Arg->getEndLoc();
  617                                          SourceLocation OperatorLoc,
  638     SourceLocation OperatorLoc, FPOptions FPFeatures, ADLCallKind UsesADL) {
  686                                      SourceLocation RP, unsigned MinNumArgs)
  696                                              SourceLocation RP,
  778                                              SourceLocation L,
  779                                              SourceLocation RParenLoc,
  803                                                SourceLocation L,
  804                                                SourceLocation RParenLoc,
  860                                TypeSourceInfo *WrittenTy, SourceLocation L,
  861                                SourceLocation RParenLoc,
  883                                            SourceLocation L,
  884                                            SourceLocation RParenLoc,
  897                               SourceLocation L, SourceLocation R) {
  897                               SourceLocation L, SourceLocation R) {
  914 SourceLocation CXXFunctionalCastExpr::getBeginLoc() const {
  918 SourceLocation CXXFunctionalCastExpr::getEndLoc() const {
  924                                        SourceLocation LitEndLoc,
  925                                        SourceLocation SuffixLoc)
  936                                                SourceLocation LitEndLoc,
  937                                                SourceLocation SuffixLoc) {
  992 CXXDefaultInitExpr::CXXDefaultInitExpr(const ASTContext &Ctx, SourceLocation Loc,
 1059 SourceLocation CXXTemporaryObjectExpr::getBeginLoc() const {
 1063 SourceLocation CXXTemporaryObjectExpr::getEndLoc() const {
 1064   SourceLocation Loc = getParenOrBraceRange().getEnd();
 1071     const ASTContext &Ctx, QualType Ty, SourceLocation Loc,
 1095     StmtClass SC, QualType Ty, SourceLocation Loc, CXXConstructorDecl *Ctor,
 1132 LambdaCapture::LambdaCapture(SourceLocation Loc, bool Implicit,
 1134                              SourceLocation EllipsisLoc)
 1173                        SourceLocation CaptureDefaultLoc,
 1176                        SourceLocation ClosingBrace,
 1217     SourceLocation CaptureDefaultLoc, ArrayRef<LambdaCapture> Captures,
 1219     SourceLocation ClosingBrace, bool ContainsUnexpandedParameterPack) {
 1354                                                        SourceLocation LParenLoc,
 1356                                                        SourceLocation RParenLoc)
 1379     const ASTContext &Context, TypeSourceInfo *TSI, SourceLocation LParenLoc,
 1380     ArrayRef<Expr *> Args, SourceLocation RParenLoc) {
 1392 SourceLocation CXXUnresolvedConstructExpr::getBeginLoc() const {
 1398     SourceLocation OperatorLoc, NestedNameSpecifierLoc QualifierLoc,
 1399     SourceLocation TemplateKWLoc, NamedDecl *FirstQualifierFoundInScope,
 1447     SourceLocation OperatorLoc, NestedNameSpecifierLoc QualifierLoc,
 1448     SourceLocation TemplateKWLoc, NamedDecl *FirstQualifierFoundInScope,
 1499     QualType BaseType, bool IsArrow, SourceLocation OperatorLoc,
 1500     NestedNameSpecifierLoc QualifierLoc, SourceLocation TemplateKWLoc,
 1539     QualType BaseType, bool IsArrow, SourceLocation OperatorLoc,
 1540     NestedNameSpecifierLoc QualifierLoc, SourceLocation TemplateKWLoc,
 1596 SizeOfPackExpr::Create(ASTContext &Context, SourceLocation OperatorLoc,
 1597                        NamedDecl *Pack, SourceLocation PackLoc,
 1598                        SourceLocation RParenLoc,
 1618                                  SourceLocation NameLoc,
 1630                                            SourceLocation NameLoc,
 1643                              VarDecl *ParamPack, SourceLocation NameLoc,
 1675 TypeTraitExpr::TypeTraitExpr(QualType T, SourceLocation Loc, TypeTrait Kind,
 1677                              SourceLocation RParenLoc,
 1704                                      SourceLocation Loc,
 1707                                      SourceLocation RParenLoc,
 1721                                        ExprValueKind VK, SourceLocation RP,
 1733                            SourceLocation RP, unsigned MinNumArgs) {
 1755     NestedNameSpecifierLoc NNS, SourceLocation TemplateKWLoc,
 1756     SourceLocation ConceptNameLoc, NamedDecl *FoundDecl,
 1810                                   SourceLocation TemplateKWLoc,
 1811                                   SourceLocation ConceptNameLoc,
tools/clang/lib/AST/ExprClassification.cpp
   35                                        Cl::Kinds Kind, SourceLocation &Loc);
   37 Cl Expr::ClassifyImpl(ASTContext &Ctx, SourceLocation *Loc) const {
  606                                        Cl::Kinds Kind, SourceLocation &Loc) {
  678 Expr::isModifiableLvalue(ASTContext &Ctx, SourceLocation *Loc) const {
  679   SourceLocation dummy;
tools/clang/lib/AST/ExprConstant.cpp
  519     SourceLocation CallLoc;
  549     CallStackFrame(EvalInfo &Info, SourceLocation CallLoc,
  595     SourceLocation getCallLocation() const override { return CallLoc; }
  625 static bool HandleDestruction(EvalInfo &Info, SourceLocation Loc,
  644         SourceLocation Loc;
  945     bool CheckCallLimit(SourceLocation Loc) {
 1375 CallStackFrame::CallStackFrame(EvalInfo &Info, SourceLocation CallLoc,
 1991                                   EvalInfo &Info, SourceLocation DiagLoc,
 1994                                   SourceLocation SubobjectLoc,
 2000 static bool CheckLValueConstantExpression(EvalInfo &Info, SourceLocation Loc,
 2110                                                  SourceLocation Loc,
 2155                                   EvalInfo &Info, SourceLocation DiagLoc,
 2158                                   SourceLocation SubobjectLoc,
 2239 CheckConstantExpression(EvalInfo &Info, SourceLocation DiagLoc, QualType Type,
 2250 static bool CheckFullyInitialized(EvalInfo &Info, SourceLocation DiagLoc,
 2747 static bool HandleSizeof(EvalInfo &Info, SourceLocation Loc,
 3211           SourceLocation Loc;
 4859 static bool CheckTrivialDefaultConstructor(EvalInfo &Info, SourceLocation Loc,
 4884 static bool CheckConstexprFunction(EvalInfo &Info, SourceLocation CallLoc,
 5472 static bool HandleFunctionCall(SourceLocation CallLoc,
 5539   SourceLocation CallLoc = E->getExprLoc();
 5745 static bool HandleDestructionImpl(EvalInfo &Info, SourceLocation CallLoc,
 5945 static bool HandleDestruction(EvalInfo &Info, SourceLocation Loc,
 6511 static bool checkBitCastConstexprEligibilityType(SourceLocation Loc,
10362 static bool determineEndOffset(EvalInfo &Info, SourceLocation ExprLoc,
13616   SourceLocation DeclLoc = VD->getLocation();
13681   SourceLocation DeclLoc = getLocation();
13797   SourceLocation Loc;
13799   ICEDiag(ICEKind IK, SourceLocation l) : Kind(IK), Loc(l) {}
14222                                                     SourceLocation *Loc) {
14242                                  SourceLocation *Loc) const {
14258                                  SourceLocation *Loc, bool isEvaluated) const {
14292                                SourceLocation *Loc) const {
14413     SourceLocation Loc = FD->getLocation();
tools/clang/lib/AST/ExprObjC.cpp
  123                                  SourceLocation LBracLoc,
  124                                  SourceLocation SuperLoc, bool IsInstanceSuper,
  126                                  ArrayRef<SourceLocation> SelLocs,
  129                                  SourceLocation RBracLoc, bool isImplicit)
  145                                  SourceLocation LBracLoc,
  147                                  ArrayRef<SourceLocation> SelLocs,
  150                                  SourceLocation RBracLoc, bool isImplicit)
  163                                  SourceLocation LBracLoc, Expr *Receiver,
  164                                  Selector Sel, ArrayRef<SourceLocation> SelLocs,
  167                                  SourceLocation RBracLoc, bool isImplicit)
  181                                          ArrayRef<SourceLocation> SelLocs,
  207                         SourceLocation LBracLoc, SourceLocation SuperLoc,
  207                         SourceLocation LBracLoc, SourceLocation SuperLoc,
  209                         ArrayRef<SourceLocation> SelLocs,
  211                         SourceLocation RBracLoc, bool isImplicit) {
  227                         SourceLocation LBracLoc, TypeSourceInfo *Receiver,
  228                         Selector Sel, ArrayRef<SourceLocation> SelLocs,
  230                         SourceLocation RBracLoc, bool isImplicit) {
  246                         SourceLocation LBracLoc, Expr *Receiver, Selector Sel,
  247                         ArrayRef<SourceLocation> SelLocs,
  249                         SourceLocation RBracLoc, bool isImplicit) {
  272                                         SourceLocation RBraceLoc,
  273                                         ArrayRef<SourceLocation> SelLocs,
  285       totalSizeToAlloc<void *, SourceLocation>(NumArgs + 1, NumStoredSelLocs),
  290     SmallVectorImpl<SourceLocation> &SelLocs) const {
tools/clang/lib/AST/Interp/ByteCodeEmitter.cpp
  119 bool ByteCodeEmitter::bail(const SourceLocation &Loc) {
tools/clang/lib/AST/Interp/ByteCodeEmitter.h
   60   bool bail(const SourceLocation &Loc);
   86   llvm::Optional<SourceLocation> BailLocation;
tools/clang/lib/AST/Interp/ByteCodeGenError.h
   23   ByteCodeGenError(SourceLocation Loc) : Loc(Loc) {}
   29   const SourceLocation &getLoc() const { return Loc; }
   35   SourceLocation Loc;
tools/clang/lib/AST/Interp/Descriptor.cpp
  253 SourceLocation Descriptor::getLocation() const {
tools/clang/lib/AST/Interp/Descriptor.h
  110   SourceLocation getLocation() const;
tools/clang/lib/AST/Interp/EvalEmitter.cpp
   63 bool EvalEmitter::bail(const SourceLocation &Loc) {
tools/clang/lib/AST/Interp/EvalEmitter.h
   62   bool bail(const SourceLocation &Loc);
  100   llvm::Optional<SourceLocation> BailLocation;
tools/clang/lib/AST/Interp/Frame.h
   36   virtual SourceLocation getCallLocation() const = 0;
tools/clang/lib/AST/Interp/Function.h
   77   SourceLocation getLoc() const { return Loc; }
  134   SourceLocation Loc;
tools/clang/lib/AST/Interp/Interp.cpp
  334   const SourceLocation &Loc = S.Current->getLocation(OpPC);
tools/clang/lib/AST/Interp/Interp.h
  122     auto Loc = E->getExprLoc();
  933   SourceLocation EndLoc = S.Current->getCallee()->getEndLoc();
tools/clang/lib/AST/Interp/InterpFrame.cpp
  145 SourceLocation InterpFrame::getCallLocation() const {
  190 SourceLocation InterpFrame::getLocation(CodePtr PC) const {
tools/clang/lib/AST/Interp/InterpFrame.h
   54   SourceLocation getCallLocation() const;
  111   SourceLocation getLocation(CodePtr PC) const;
tools/clang/lib/AST/Interp/Pointer.h
  148   SourceLocation getDeclLoc() const { return getDeclDesc()->getLocation(); }
tools/clang/lib/AST/Interp/Source.cpp
   15 SourceLocation SourceInfo::getLoc() const {
   37 SourceLocation SourceMapper::getLocation(Function *F, CodePtr PC) const {
tools/clang/lib/AST/Interp/Source.h
   87   SourceLocation getLoc() const;
  112   SourceLocation getLocation(Function *F, CodePtr PC) const;
tools/clang/lib/AST/Interp/State.cpp
   20 OptionalDiagnostic State::FFDiag(SourceLocation Loc, diag::kind DiagId,
   41 OptionalDiagnostic State::CCEDiag(SourceLocation Loc, diag::kind DiagId,
   62 OptionalDiagnostic State::Note(SourceLocation Loc, diag::kind DiagId) {
   75 DiagnosticBuilder State::report(SourceLocation Loc, diag::kind DiagId) {
   80 PartialDiagnostic &State::addDiag(SourceLocation Loc, diag::kind DiagId) {
   86 OptionalDiagnostic State::diag(SourceLocation Loc, diag::kind DiagId,
  131     SourceLocation CallLocation = F->getCallLocation();
tools/clang/lib/AST/Interp/State.h
   76   FFDiag(SourceLocation Loc,
   96   CCEDiag(SourceLocation Loc,
  111   OptionalDiagnostic Note(SourceLocation Loc, diag::kind DiagId);
  117   DiagnosticBuilder report(SourceLocation Loc, diag::kind DiagId);
  124   PartialDiagnostic &addDiag(SourceLocation Loc, diag::kind DiagId);
  126   OptionalDiagnostic diag(SourceLocation Loc, diag::kind DiagId,
tools/clang/lib/AST/JSONNodeDumper.cpp
  200 void JSONNodeDumper::writeBareSourceLocation(SourceLocation Loc,
  232 void JSONNodeDumper::writeSourceLocation(SourceLocation Loc) {
  233   SourceLocation Spelling = SM.getSpellingLoc(Loc);
  234   SourceLocation Expansion = SM.getExpansionLoc(Loc);
tools/clang/lib/AST/MicrosoftMangle.cpp
  343   void mangleOperatorName(OverloadedOperatorKind OO, SourceLocation Loc);
 1164                                                  SourceLocation Loc) {
tools/clang/lib/AST/NestedNameSpecifier.cpp
  407 static SourceLocation LoadSourceLocation(void *Data, unsigned Offset) {
  410   return SourceLocation::getFromRawEncoding(Raw);
  498 static void SaveSourceLocation(SourceLocation Loc, char *&Buffer,
  572                                            SourceLocation TemplateKWLoc,
  574                                            SourceLocation ColonColonLoc) {
  586                                            SourceLocation IdentifierLoc,
  587                                            SourceLocation ColonColonLoc) {
  598                                            SourceLocation NamespaceLoc,
  599                                            SourceLocation ColonColonLoc) {
  610                                            SourceLocation AliasLoc,
  611                                            SourceLocation ColonColonLoc) {
  620                                                SourceLocation ColonColonLoc) {
  630                                               SourceLocation SuperLoc,
  631                                               SourceLocation ColonColonLoc) {
tools/clang/lib/AST/OpenMPClause.cpp
  267                                            SourceLocation StartLoc,
  268                                            SourceLocation LParenLoc,
  269                                            SourceLocation EndLoc) {
  323 OMPPrivateClause::Create(const ASTContext &C, SourceLocation StartLoc,
  324                          SourceLocation LParenLoc, SourceLocation EndLoc,
  324                          SourceLocation LParenLoc, SourceLocation EndLoc,
  354 OMPFirstprivateClause::Create(const ASTContext &C, SourceLocation StartLoc,
  355                               SourceLocation LParenLoc, SourceLocation EndLoc,
  355                               SourceLocation LParenLoc, SourceLocation EndLoc,
  403     const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
  403     const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
  404     SourceLocation EndLoc, ArrayRef<Expr *> VL, ArrayRef<Expr *> SrcExprs,
  426                                          SourceLocation StartLoc,
  427                                          SourceLocation LParenLoc,
  428                                          SourceLocation EndLoc,
  474     const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
  474     const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
  475     OpenMPLinearClauseKind Modifier, SourceLocation ModifierLoc,
  476     SourceLocation ColonLoc, SourceLocation EndLoc, ArrayRef<Expr *> VL,
  476     SourceLocation ColonLoc, SourceLocation EndLoc, ArrayRef<Expr *> VL,
  519 OMPAlignedClause::Create(const ASTContext &C, SourceLocation StartLoc,
  520                          SourceLocation LParenLoc, SourceLocation ColonLoc,
  520                          SourceLocation LParenLoc, SourceLocation ColonLoc,
  521                          SourceLocation EndLoc, ArrayRef<Expr *> VL, Expr *A) {
  559     const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
  559     const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
  560     SourceLocation EndLoc, ArrayRef<Expr *> VL, ArrayRef<Expr *> SrcExprs,
  600     const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
  600     const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
  601     SourceLocation EndLoc, ArrayRef<Expr *> VL, ArrayRef<Expr *> SrcExprs,
  647     const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
  647     const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
  648     SourceLocation EndLoc, SourceLocation ColonLoc, ArrayRef<Expr *> VL,
  648     SourceLocation EndLoc, SourceLocation ColonLoc, ArrayRef<Expr *> VL,
  700     const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
  700     const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
  701     SourceLocation EndLoc, SourceLocation ColonLoc, ArrayRef<Expr *> VL,
  701     SourceLocation EndLoc, SourceLocation ColonLoc, ArrayRef<Expr *> VL,
  762     const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
  762     const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc,
  763     SourceLocation EndLoc, SourceLocation ColonLoc, ArrayRef<Expr *> VL,
  763     SourceLocation EndLoc, SourceLocation ColonLoc, ArrayRef<Expr *> VL,
  789 OMPAllocateClause::Create(const ASTContext &C, SourceLocation StartLoc,
  790                           SourceLocation LParenLoc, Expr *Allocator,
  791                           SourceLocation ColonLoc, SourceLocation EndLoc,
  791                           SourceLocation ColonLoc, SourceLocation EndLoc,
  808                                        SourceLocation StartLoc,
  809                                        SourceLocation LParenLoc,
  810                                        SourceLocation EndLoc,
  825 OMPDependClause::Create(const ASTContext &C, SourceLocation StartLoc,
  826                         SourceLocation LParenLoc, SourceLocation EndLoc,
  826                         SourceLocation LParenLoc, SourceLocation EndLoc,
  827                         OpenMPDependClauseKind DepKind, SourceLocation DepLoc,
  828                         SourceLocation ColonLoc, ArrayRef<Expr *> VL,
  905     ArrayRef<SourceLocation> MapModifiersLoc,
  907     OpenMPMapClauseKind Type, bool TypeIsImplicit, SourceLocation TypeLoc) {
tools/clang/lib/AST/RawCommentList.cpp
   70   SourceLocation L1 = R1.getBeginLoc();
   71   SourceLocation L2 = R2.getBeginLoc();
  225                                   SourceLocation Loc1, SourceLocation Loc2,
  225                                   SourceLocation Loc1, SourceLocation Loc2,
tools/clang/lib/AST/RecordLayoutBuilder.cpp
  782   DiagnosticBuilder Diag(SourceLocation Loc, unsigned DiagID);
 2155 DiagnosticBuilder ItaniumRecordLayoutBuilder::Diag(SourceLocation Loc,
tools/clang/lib/AST/SelectorLocationsKind.cpp
   19 static SourceLocation getStandardSelLoc(unsigned Index,
   22                                         SourceLocation ArgLoc,
   23                                         SourceLocation EndLoc) {
   47 SourceLocation getArgLoc(T* Arg);
   50 SourceLocation getArgLoc<Expr>(Expr *Arg) {
   55 SourceLocation getArgLoc<ParmVarDecl>(ParmVarDecl *Arg) {
   56   SourceLocation Loc = Arg->getBeginLoc();
   64 SourceLocation getArgLoc(unsigned Index, ArrayRef<T*> Args) {
   70                                          ArrayRef<SourceLocation> SelLocs,
   72                                          SourceLocation EndLoc) {
   97                                ArrayRef<SourceLocation> SelLocs,
   99                                SourceLocation EndLoc) {
  103 SourceLocation clang::getStandardSelectorLoc(unsigned Index,
  107                                              SourceLocation EndLoc) {
  114                                ArrayRef<SourceLocation> SelLocs,
  116                                SourceLocation EndLoc) {
  120 SourceLocation clang::getStandardSelectorLoc(unsigned Index,
  124                                              SourceLocation EndLoc) {
tools/clang/lib/AST/Stmt.cpp
  188   typedef SourceLocation getBeginLoc_t() const;
  195   typedef SourceLocation getLocEnd_t() const;
  274 SourceLocation Stmt::getBeginLoc() const {
  287 SourceLocation Stmt::getEndLoc() const {
  303 CompoundStmt::CompoundStmt(ArrayRef<Stmt *> Stmts, SourceLocation LB,
  304                            SourceLocation RB)
  319                                    SourceLocation LB, SourceLocation RB) {
  319                                    SourceLocation LB, SourceLocation RB) {
  355 AttributedStmt *AttributedStmt::Create(const ASTContext &C, SourceLocation Loc,
  656       SourceLocation BeginLoc = getAsmString()->getLocationOfByte(
  659       SourceLocation EndLoc = getAsmString()->getLocationOfByte(
  692       SourceLocation BeginLoc = getAsmString()->getLocationOfByte(
  695       SourceLocation EndLoc = getAsmString()->getLocationOfByte(
  753 GCCAsmStmt::GCCAsmStmt(const ASTContext &C, SourceLocation asmloc,
  759                        SourceLocation rparenloc)
  779 MSAsmStmt::MSAsmStmt(const ASTContext &C, SourceLocation asmloc,
  780                      SourceLocation lbraceloc, bool issimple, bool isvolatile,
  785                      SourceLocation endloc)
  829 IfStmt::IfStmt(const ASTContext &Ctx, SourceLocation IL, bool IsConstexpr,
  831                SourceLocation EL, Stmt *Else)
  863 IfStmt *IfStmt::Create(const ASTContext &Ctx, SourceLocation IL,
  865                        Stmt *Then, SourceLocation EL, Stmt *Else) {
  870       totalSizeToAlloc<Stmt *, SourceLocation>(
  880       totalSizeToAlloc<Stmt *, SourceLocation>(
  912                  Expr *Inc, Stmt *Body, SourceLocation FL, SourceLocation LP,
  912                  Expr *Inc, Stmt *Body, SourceLocation FL, SourceLocation LP,
  913                  SourceLocation RP)
 1009                      Stmt *Body, SourceLocation WL)
 1028                              Stmt *Body, SourceLocation WL) {
 1072 ReturnStmt::ReturnStmt(SourceLocation RL, Expr *E, const VarDecl *NRVOCandidate)
 1086 ReturnStmt *ReturnStmt::Create(const ASTContext &Ctx, SourceLocation RL,
 1103                            SourceLocation caseLoc, SourceLocation ellipsisLoc,
 1103                            SourceLocation caseLoc, SourceLocation ellipsisLoc,
 1104                            SourceLocation colonLoc) {
 1107       totalSizeToAlloc<Stmt *, SourceLocation>(
 1116       totalSizeToAlloc<Stmt *, SourceLocation>(
 1122 SEHTryStmt::SEHTryStmt(bool IsCXXTry, SourceLocation TryLoc, Stmt *TryBlock,
 1130                                SourceLocation TryLoc, Stmt *TryBlock,
 1143 SEHExceptStmt::SEHExceptStmt(SourceLocation Loc, Expr *FilterExpr, Stmt *Block)
 1149 SEHExceptStmt* SEHExceptStmt::Create(const ASTContext &C, SourceLocation Loc,
 1154 SEHFinallyStmt::SEHFinallyStmt(SourceLocation Loc, Stmt *Block)
 1157 SEHFinallyStmt* SEHFinallyStmt::Create(const ASTContext &C, SourceLocation Loc,
 1162 CapturedStmt::Capture::Capture(SourceLocation Loc, VariableCaptureKind Kind,
tools/clang/lib/AST/StmtCXX.cpp
   25 CXXTryStmt *CXXTryStmt::Create(const ASTContext &C, SourceLocation tryLoc,
   39 CXXTryStmt::CXXTryStmt(SourceLocation tryLoc, Stmt *tryBlock,
   50                                  Stmt *Body, SourceLocation FL,
   51                                  SourceLocation CAL, SourceLocation CL,
   51                                  SourceLocation CAL, SourceLocation CL,
   52                                  SourceLocation RPL)
tools/clang/lib/AST/StmtObjC.cpp
   21                                              Stmt *Body, SourceLocation FCL,
   22                                              SourceLocation RPL)
   31 ObjCAtTryStmt::ObjCAtTryStmt(SourceLocation atTryLoc, Stmt *atTryStmt,
   46                                      SourceLocation atTryLoc, Stmt *atTryStmt,
   66 SourceLocation ObjCAtTryStmt::getEndLoc() const {
tools/clang/lib/AST/StmtOpenMP.cpp
   95     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
   95     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  120 OMPSimdDirective::Create(const ASTContext &C, SourceLocation StartLoc,
  121                          SourceLocation EndLoc, unsigned CollapsedNum,
  163 OMPForDirective::Create(const ASTContext &C, SourceLocation StartLoc,
  164                         SourceLocation EndLoc, unsigned CollapsedNum,
  215 OMPForSimdDirective::Create(const ASTContext &C, SourceLocation StartLoc,
  216                             SourceLocation EndLoc, unsigned CollapsedNum,
  268     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  268     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  293                                                  SourceLocation StartLoc,
  294                                                  SourceLocation EndLoc,
  313                                                SourceLocation StartLoc,
  314                                                SourceLocation EndLoc,
  339                                                SourceLocation StartLoc,
  340                                                SourceLocation EndLoc,
  358     SourceLocation StartLoc, SourceLocation EndLoc,
  358     SourceLocation StartLoc, SourceLocation EndLoc,
  382     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  382     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  434     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  434     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  486     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  486     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  511 OMPTaskDirective::Create(const ASTContext &C, SourceLocation StartLoc,
  512                          SourceLocation EndLoc, ArrayRef<OMPClause *> Clauses,
  535                                                      SourceLocation StartLoc,
  536                                                      SourceLocation EndLoc) {
  550                                                  SourceLocation StartLoc,
  551                                                  SourceLocation EndLoc) {
  564                                                    SourceLocation StartLoc,
  565                                                    SourceLocation EndLoc) {
  578     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  578     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  603     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  603     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  623 OMPCancelDirective::Create(const ASTContext &C, SourceLocation StartLoc,
  624                            SourceLocation EndLoc, ArrayRef<OMPClause *> Clauses,
  648                                              SourceLocation StartLoc,
  649                                              SourceLocation EndLoc,
  670                                                  SourceLocation StartLoc,
  671                                                  SourceLocation EndLoc,
  696     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  696     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  727                                                SourceLocation StartLoc,
  728                                                SourceLocation EndLoc,
  753     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  753     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  777     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  777     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  830     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  830     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  852     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  852     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  874     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  874     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  896                                              SourceLocation StartLoc,
  897                                              SourceLocation EndLoc,
  922     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  922     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  974     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
  974     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1025     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1025     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1077     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1077     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1131     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1131     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1186     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1186     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1237     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1237     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1261     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1261     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1332     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1332     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1402     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1402     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1456     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1456     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1512 OMPTargetSimdDirective::Create(const ASTContext &C, SourceLocation StartLoc,
 1513                                SourceLocation EndLoc, unsigned CollapsedNum,
 1556     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1556     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1608     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1608     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1663     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1663     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1736     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1736     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1807     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1807     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1831     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1831     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1888     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1888     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1964     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 1964     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2038     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
 2038     const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
tools/clang/lib/AST/TemplateBase.cpp
  583     SourceLocation TemplateKWLoc, const TemplateArgumentListInfo &Info,
  594 void ASTTemplateKWAndArgsInfo::initializeFrom(SourceLocation TemplateKWLoc) {
  603     SourceLocation TemplateKWLoc, const TemplateArgumentListInfo &Info,
tools/clang/lib/AST/TextNodeDumper.cpp
  341 void TextNodeDumper::dumpLocation(SourceLocation Loc) {
  346   SourceLocation SpellingLoc = SM->getSpellingLoc(Loc);
tools/clang/lib/AST/Type.cpp
  222     Expr *SizeExpr, SourceLocation Loc, VectorType::VectorKind VecKind)
  246                                                          SourceLocation loc)
  265     Expr *AddrSpaceExpr, SourceLocation loc)
tools/clang/lib/AST/TypeLoc.cpp
  130                              SourceLocation Loc) {
  189 SourceLocation TypeLoc::getBeginLoc() const {
  226 SourceLocation TypeLoc::getEndLoc() const {
  411 SourceLocation TypeLoc::findNullabilityLoc() const {
  444                                            SourceLocation Loc) {
  455                                         SourceLocation Loc) {
  471                                        SourceLocation Loc) {
  479                                        SourceLocation Loc) {
  488                                         SourceLocation Loc) {
  496                                            SourceLocation Loc) {
  506                                                         SourceLocation Loc) {
  528                                                       SourceLocation Loc) {
tools/clang/lib/Analysis/AnalysisDeclContext.cpp
  469                           SourceLocation Loc) {
tools/clang/lib/Analysis/CFG.cpp
   66 static SourceLocation GetEndLoc(Decl *D) {
tools/clang/lib/Analysis/CloneDetection.cpp
   79 SourceLocation StmtSequence::getBeginLoc() const {
   83 SourceLocation StmtSequence::getEndLoc() const { return back()->getEndLoc(); }
tools/clang/lib/Analysis/Consumed.cpp
   61 static SourceLocation getFirstStmtLoc(const CFGBlock *Block) {
   76 static SourceLocation getLastStmtLoc(const CFGBlock *Block) {
   90   SourceLocation Loc;
  496                         SourceLocation BlameLoc);
  581                                            SourceLocation BlameLoc) {
 1089 void ConsumedStateMap::checkParamsForReturnTypestate(SourceLocation BlameLoc,
 1156   SourceLocation BlameLoc = getLastStmtLoc(LoopBack);
 1361         SourceLocation Loc = DTor.getTriggerStmt()->getEndLoc();
tools/clang/lib/Analysis/PathDiagnostic.cpp
  182           SourceLocation L = SMgr.getExpansionLoc(I.getBegin());
  366     SourceLocation XDL = XD->getLocation();
  367     SourceLocation YDL = YD->getLocation();
  462 SourceLocation PathDiagnosticLocation::getValidSourceLocation(
  464   SourceLocation L = UseEndOfStatement ? S->getEndLoc() : S->getBeginLoc();
  617   SourceLocation L = CS->getLBracLoc();
  624   SourceLocation L = CS->getRBracLoc();
  634       SourceLocation Loc = (*CS->body_begin())->getBeginLoc();
  644   SourceLocation L = LC->getDecl()->getBodyRBrace();
  727   PathDiagnosticLocation::genLocation(SourceLocation L,
  788           SourceLocation L = getValidSourceLocation(S, LAC);
  805         SourceLocation L = D->getLocation();
tools/clang/lib/Analysis/ReachableCode.cpp
  137 static SourceLocation getTopMostMacro(SourceLocation Loc, SourceManager &SM) {
  137 static SourceLocation getTopMostMacro(SourceLocation Loc, SourceManager &SM) {
  139   SourceLocation Last;
  155   SourceLocation L = S->getBeginLoc();
  162       SourceLocation TopL = getTopMostMacro(L, SM);
  168       SourceLocation TopL = getTopMostMacro(L, SM);
  545 static SourceLocation GetUnreachableLoc(const Stmt *S,
  633       SourceLocation Loc = LoopTarget->getBeginLoc();
  661   SourceLocation Loc = GetUnreachableLoc(S, R1, R2);
tools/clang/lib/Analysis/ThreadSafety.cpp
   72   SourceLocation Loc;
  113   SourceLocation AcquireLoc;
  122   FactEntry(const CapabilityExpr &CE, LockKind LK, SourceLocation Loc,
  129   SourceLocation loc() const { return AcquireLoc; }
  137                                 SourceLocation JoinLoc, LockErrorKind LEK,
  143                             const CapabilityExpr &Cp, SourceLocation UnlockLoc,
  303                         SourceLocation Loc, StringRef CapKind);
  339   SourceLocation EntryLoc;
  342   SourceLocation ExitLoc;
  354   SourceLocation getLocation(CFGBlockSide Side) const {
  859   LockableFactEntry(const CapabilityExpr &CE, LockKind LK, SourceLocation Loc,
  865                                 SourceLocation JoinLoc, LockErrorKind LEK,
  880                     const CapabilityExpr &Cp, SourceLocation UnlockLoc,
  905   ScopedLockableFactEntry(const CapabilityExpr &CE, SourceLocation Loc)
  926                                 SourceLocation JoinLoc, LockErrorKind LEK,
  957                     const CapabilityExpr &Cp, SourceLocation UnlockLoc,
  982             LockKind kind, SourceLocation loc, ThreadSafetyHandler *Handler,
  995               SourceLocation loc, ThreadSafetyHandler *Handler,
 1033                   SourceLocation UnlockLoc, bool FullyRemove, LockKind Kind,
 1054                         SourceLocation JoinLoc,
 1059                         SourceLocation JoinLoc, LockErrorKind LEK1,
 1141                                  SourceLocation Loc, StringRef CapKind) {
 1323                                       SourceLocation UnlockLoc,
 1552   SourceLocation Loc = Exp->getExprLoc();
 1581                           StringRef DiagKind, SourceLocation Loc);
 1616                                       StringRef DiagKind, SourceLocation Loc) {
 1702   SourceLocation Loc = Exp->getExprLoc();
 1803   SourceLocation Loc = Exp->getExprLoc();
 1941     SourceLocation MLoc = VD->getLocation();
 2123                                SourceLocation Loc) {
 2187                                             SourceLocation JoinLoc,
 2315     SourceLocation Loc = D->getLocation();
tools/clang/lib/Basic/Diagnostic.cpp
  105 void DiagnosticsEngine::pushMappings(SourceLocation Loc) {
  109 bool DiagnosticsEngine::popMappings(SourceLocation Loc) {
  170                                              SourceLocation Loc,
  196                                         SourceLocation Loc) const {
  336                                            SourceLocation Loc) {
  342                                     SourceLocation L) {
  384                                             SourceLocation Loc) {
  460                                           SourceLocation Loc) {
tools/clang/lib/Basic/DiagnosticIDs.cpp
  399 DiagnosticIDs::getDiagnosticLevel(unsigned DiagID, SourceLocation Loc,
  419 DiagnosticIDs::getDiagnosticSeverity(unsigned DiagID, SourceLocation Loc,
tools/clang/lib/Basic/Module.cpp
   37 Module::Module(StringRef Name, SourceLocation DefinitionLoc, Module *Parent,
  184     const std::pair<std::string, SourceLocation> &IdComponent) {
  612 void VisibleModuleSet::setVisible(Module *M, SourceLocation Loc,
tools/clang/lib/Basic/SanitizerBlacklist.cpp
   45                                                SourceLocation Loc,
tools/clang/lib/Basic/SourceLocation.cpp
   88                                    SourceLocation Loc, PresumedLoc Previous) {
  181   std::pair<SourceLocation, StringRef> ImportLoc =
  232 bool FullSourceLoc::isBeforeInTranslationUnitThan(SourceLocation Loc) const {
tools/clang/lib/Basic/SourceManager.cpp
  123                                                   SourceLocation Loc,
  310 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo,
  567                                    SourceLocation IncludePos,
  597 SourceLocation
  598 SourceManager::createMacroArgExpansionLoc(SourceLocation SpellingLoc,
  599                                           SourceLocation ExpansionLoc,
  606 SourceLocation
  607 SourceManager::createExpansionLoc(SourceLocation SpellingLoc,
  608                                   SourceLocation ExpansionLocStart,
  609                                   SourceLocation ExpansionLocEnd,
  619 SourceLocation SourceManager::createTokenSplitLoc(SourceLocation Spelling,
  619 SourceLocation SourceManager::createTokenSplitLoc(SourceLocation Spelling,
  620                                                   SourceLocation TokenStart,
  621                                                   SourceLocation TokenEnd) {
  629 SourceLocation
  641     return SourceLocation::getMacroLoc(LoadedOffset);
  649   return SourceLocation::getMacroLoc(NextLocalOffset - (TokLength + 1));
  911 SourceLocation SourceManager::
  912 getExpansionLocSlowCase(SourceLocation Loc) const {
  926 SourceLocation SourceManager::getSpellingLocSlowCase(SourceLocation Loc) const {
  926 SourceLocation SourceManager::getSpellingLocSlowCase(SourceLocation Loc) const {
  935 SourceLocation SourceManager::getFileLocSlowCase(SourceLocation Loc) const {
  935 SourceLocation SourceManager::getFileLocSlowCase(SourceLocation Loc) const {
  951   SourceLocation Loc;
  969   SourceLocation Loc;
  986 SourceLocation SourceManager::getImmediateSpellingLoc(SourceLocation Loc) const{
  986 SourceLocation SourceManager::getImmediateSpellingLoc(SourceLocation Loc) const{
  996 SourceManager::getImmediateExpansionRange(SourceLocation Loc) const {
 1002 SourceLocation SourceManager::getTopMacroCallerLoc(SourceLocation Loc) const {
 1002 SourceLocation SourceManager::getTopMacroCallerLoc(SourceLocation Loc) const {
 1010 CharSourceRange SourceManager::getExpansionRange(SourceLocation Loc) const {
 1028 bool SourceManager::isMacroArgExpansion(SourceLocation Loc,
 1029                                         SourceLocation *StartLoc) const {
 1041 bool SourceManager::isMacroBodyExpansion(SourceLocation Loc) const {
 1049 bool SourceManager::isAtStartOfImmediateMacroExpansion(SourceLocation Loc,
 1050                                              SourceLocation *MacroBegin) const {
 1062   SourceLocation ExpLoc = ExpInfo.getExpansionLocStart();
 1084 bool SourceManager::isAtEndOfImmediateMacroExpansion(SourceLocation Loc,
 1085                                                SourceLocation *MacroEnd) const {
 1089   SourceLocation NextLoc = Loc.getLocWithOffset(1);
 1126 const char *SourceManager::getCharacterData(SourceLocation SL,
 1199 static bool isInvalid(LocType Loc, bool *Invalid) {
 1206 unsigned SourceManager::getSpellingColumnNumber(SourceLocation Loc,
 1213 unsigned SourceManager::getExpansionColumnNumber(SourceLocation Loc,
 1220 unsigned SourceManager::getPresumedColumnNumber(SourceLocation Loc,
 1376 unsigned SourceManager::getSpellingLineNumber(SourceLocation Loc,
 1382 unsigned SourceManager::getExpansionLineNumber(SourceLocation Loc,
 1388 unsigned SourceManager::getPresumedLineNumber(SourceLocation Loc,
 1404 SourceManager::getFileCharacteristic(SourceLocation Loc) const {
 1434 StringRef SourceManager::getBufferName(SourceLocation Loc,
 1448 PresumedLoc SourceManager::getPresumedLoc(SourceLocation Loc,
 1480   SourceLocation IncludeLoc = FI.getIncludeLoc();
 1524 bool SourceManager::isInMainFile(SourceLocation Loc) const {
 1574 SourceLocation SourceManager::translateFileLineCol(const FileEntry *SourceFile,
 1633 SourceLocation SourceManager::translateLineCol(FileID FID,
 1651   SourceLocation FileLoc = SourceLocation::getFileLoc(Entry.getOffset());
 1651   SourceLocation FileLoc = SourceLocation::getFileLoc(Entry.getOffset());
 1722       SourceLocation IncludeLoc = Entry.getFile().getIncludeLoc();
 1747                                  SourceLocation::getMacroLoc(Entry.getOffset()),
 1755                                          SourceLocation SpellLoc,
 1756                                          SourceLocation ExpansionLoc,
 1826   SourceLocation EndOffsMappedLoc = I->second;
 1840 SourceLocation
 1841 SourceManager::getMacroArgExpandedLocation(SourceLocation Loc) const {
 1862   SourceLocation MacroArgExpandedLoc = I->second;
 1882   SourceLocation UpperLoc;
 1941 bool SourceManager::isBeforeInTranslationUnit(SourceLocation LHS,
 1942                                               SourceLocation RHS) const {
tools/clang/lib/Basic/XRayLists.cpp
   62 XRayFunctionFilter::shouldImbueLocation(SourceLocation Loc,
tools/clang/lib/CodeGen/CGAtomic.cpp
  186                                      SourceLocation loc, bool AsValue) const;
  193                                      SourceLocation Loc, bool AsValue) const;
  211     RValue EmitAtomicLoad(AggValueSlot ResultSlot, SourceLocation Loc,
  724                   SourceLocation Loc, CharUnits SizeInChars) {
 1353                                              SourceLocation loc,
 1386                                              SourceLocation Loc,
 1472 RValue CodeGenFunction::EmitAtomicLoad(LValue LV, SourceLocation SL,
 1485 RValue AtomicInfo::EmitAtomicLoad(AggValueSlot ResultSlot, SourceLocation Loc,
 1518 RValue CodeGenFunction::EmitAtomicLoad(LValue src, SourceLocation loc,
 1981     LValue Obj, RValue Expected, RValue Desired, SourceLocation Loc,
tools/clang/lib/CodeGen/CGBlocks.cpp
 1494   SourceLocation StartLoc = BlockInfo->getBlockExpr()->getBody()->getBeginLoc();
tools/clang/lib/CodeGen/CGCXXABI.h
  422                                              SourceLocation Loc) = 0;
tools/clang/lib/CodeGen/CGCall.cpp
 2795                                          SourceLocation EndLoc) {
 2982   SourceLocation AttrLoc;
 3056                                           SourceLocation loc) {
 3351                                           SourceLocation ArgLoc,
 3378   SourceLocation AttrLoc;
 3784                                  SourceLocation Loc) {
tools/clang/lib/CodeGen/CGClass.cpp
  272     SourceLocation Loc) {
 2110                                              SourceLocation Loc,
 2331                                                 SourceLocation Loc) {
 2640                                                    SourceLocation Loc) {
 2661                                                 SourceLocation Loc) {
 2672                                                 SourceLocation Loc) {
 2717                                          SourceLocation Loc) {
tools/clang/lib/CodeGen/CGCoroutine.cpp
  238     auto Loc = S.getResumeExpr()->getExprLoc();
  655       auto Loc = S.getBeginLoc();
tools/clang/lib/CodeGen/CGDebugInfo.cpp
   80                                        SourceLocation TemporaryLocation)
   87                                        SourceLocation TemporaryLocation)
   92 void ApplyDebugLocation::init(SourceLocation TemporaryLocation,
  168 void CGDebugInfo::setLocation(SourceLocation Loc) {
  406 llvm::DIFile *CGDebugInfo::getOrCreateFile(SourceLocation Loc) {
  486 unsigned CGDebugInfo::getLineNumber(SourceLocation Loc) {
  494 unsigned CGDebugInfo::getColumnNumber(SourceLocation Loc, bool Force) {
 1127   SourceLocation Loc = AliasDecl->getLocation();
 1143   SourceLocation Loc = Ty->getDecl()->getLocation();
 1249   SourceLocation Loc = BitFieldDecl->getLocation();
 1277 CGDebugInfo::createFieldType(StringRef name, QualType type, SourceLocation loc,
 1315       SourceLocation Loc = C.getLocation();
 1402   SourceLocation Loc = TD->getLocation();
 2028                                                  SourceLocation Loc) {
 2035                                                     SourceLocation Loc) {
 2040                                                      SourceLocation Loc) {
 2052                                            SourceLocation Loc) {
 2298   SourceLocation Loc = Ty->getDecl()->getLocation();
 2488     SourceLocation Loc = PD->getLocation();
 2577           SourceLocation Loc = PD->getLocation();
 2834                                         unsigned MType, SourceLocation LineLoc,
 2841                                                     SourceLocation LineLoc,
 2842                                                     SourceLocation FileLoc) {
 3329   SourceLocation Loc = GD.getDecl()->getLocation();
 3382   SourceLocation Loc = VD->getLocation();
 3535 void CGDebugInfo::EmitFunctionStart(GlobalDecl GD, SourceLocation Loc,
 3536                                     SourceLocation ScopeLoc, QualType FnType,
 3658 void CGDebugInfo::EmitFunctionDecl(GlobalDecl GD, SourceLocation Loc,
 3752 void CGDebugInfo::EmitLocation(CGBuilderTy &Builder, SourceLocation Loc) {
 3764 void CGDebugInfo::CreateLexicalBlock(SourceLocation Loc) {
 3787                                         SourceLocation Loc) {
 3804                                       SourceLocation Loc) {
 4175     const CGBlockInfo &Block, const ASTContext &Context, SourceLocation Loc,
 4222   SourceLocation loc = blockDecl->getCaretLocation();
 4546     auto Loc = UD.getLocation();
 4573     auto Loc = USD.getLocation();
 4585     auto Loc = ID.getLocation();
 4601   auto Loc = NA.getLocation();
 4751 llvm::DebugLoc CGDebugInfo::SourceLocToDebugLoc(SourceLocation Loc) {
tools/clang/lib/CodeGen/CGDebugInfo.h
   64   SourceLocation CurLoc;
  270                                 SourceLocation loc, AccessSpecifier AS,
  276                                 SourceLocation loc, AccessSpecifier AS,
  315   void CreateLexicalBlock(SourceLocation Loc);
  338       const CGBlockInfo &Block, const ASTContext &Context, SourceLocation Loc,
  376   void setLocation(SourceLocation Loc);
  380   SourceLocation getLocation() const { return CurLoc; }
  390   llvm::DebugLoc SourceLocToDebugLoc(SourceLocation Loc);
  395   void EmitLocation(CGBuilderTy &Builder, SourceLocation Loc);
  401   void EmitFunctionStart(GlobalDecl GD, SourceLocation Loc,
  402                          SourceLocation ScopeLoc, QualType FnType,
  413   void EmitFunctionDecl(GlobalDecl GD, SourceLocation Loc,
  427   void EmitLexicalBlockStart(CGBuilderTy &Builder, SourceLocation Loc);
  431   void EmitLexicalBlockEnd(CGBuilderTy &Builder, SourceLocation Loc);
  485   llvm::DIType *getOrCreateRecordType(QualType Ty, SourceLocation L);
  488   llvm::DIType *getOrCreateInterfaceType(QualType Ty, SourceLocation Loc);
  491   llvm::DIType *getOrCreateStandaloneType(QualType Ty, SourceLocation Loc);
  495                                 SourceLocation Loc);
  509                              SourceLocation LineLoc, StringRef Name,
  514                                          SourceLocation LineLoc,
  515                                          SourceLocation FileLoc);
  564   llvm::DIFile *getOrCreateFile(SourceLocation Loc);
  674   unsigned getLineNumber(SourceLocation Loc);
  679   unsigned getColumnNumber(SourceLocation Loc, bool Force = false);
  713   void init(SourceLocation TemporaryLocation, bool DefaultToEmpty = false);
  715                      SourceLocation TemporaryLocation);
  722   ApplyDebugLocation(CodeGenFunction &CGF, SourceLocation TemporaryLocation);
  750                           SourceLocation TemporaryLocation) {
  766   SourceLocation SavedLocation;
tools/clang/lib/CodeGen/CGDecl.cpp
  720                                            SourceLocation Loc) {
tools/clang/lib/CodeGen/CGDeclCXX.cpp
  336     SourceLocation Loc, bool TLS) {
tools/clang/lib/CodeGen/CGException.cpp
 1836   SourceLocation StartLoc = OutlinedStmt->getBeginLoc();
tools/clang/lib/CodeGen/CGExpr.cpp
  172   SourceLocation Loc = E->getExprLoc();
  653 void CodeGenFunction::EmitTypeCheck(TypeCheckKind TCK, SourceLocation Loc,
 1525                                                SourceLocation Loc) {
 1588                                            SourceLocation Loc) {
 1636                                                SourceLocation Loc,
 1774 RValue CodeGenFunction::EmitLoadOfLValue(LValue LV, SourceLocation Loc) {
 1821                                                  SourceLocation Loc) {
 2294     llvm::Type *RealVarTy, SourceLocation Loc) {
 2872 llvm::Constant *CodeGenFunction::EmitCheckSourceLocation(SourceLocation Loc) {
 3271 void CodeGenFunction::EmitUnreachable(SourceLocation Loc) {
 3370                                           SourceLocation loc,
 3408                                      bool signedIndices, SourceLocation loc,
 4486                                            SourceLocation Loc) {
 4984                                             SourceLocation loc) {
tools/clang/lib/CodeGen/CGExprCXX.cpp
  317   SourceLocation CallLoc;
tools/clang/lib/CodeGen/CGExprComplex.cpp
   76   ComplexPairTy EmitLoadOfLValue(LValue LV, SourceLocation Loc);
   84                                          QualType DestType, SourceLocation Loc);
   87                                         QualType DestType, SourceLocation Loc);
  346                                                    SourceLocation loc) {
  425                                                            SourceLocation Loc) {
  441                                                           SourceLocation Loc) {
  918   SourceLocation Loc = E->getExprLoc();
 1132                                                  SourceLocation loc) {
tools/clang/lib/CodeGen/CGExprConstant.cpp
 1377 ConstantEmitter::emitAbstract(SourceLocation loc, const APValue &value,
tools/clang/lib/CodeGen/CGExprScalar.cpp
  261   Value *EmitLoadOfLValue(LValue LV, SourceLocation Loc) {
  319                                 llvm::Type *DstTy, SourceLocation Loc);
  334                                   QualType DstType, SourceLocation Loc);
  340                                   QualType DstType, SourceLocation Loc);
  363                        SourceLocation Loc,
  369                                   SourceLocation Loc);
  372                                   SourceLocation Loc,
  379                                        SourceLocation Loc);
  873     QualType DstType, llvm::Type *DstTy, SourceLocation Loc) {
  981                                                    SourceLocation Loc) {
 1089                                                    SourceLocation Loc) {
 1172                                                SourceLocation Loc,
 1410                                                    SourceLocation Loc) {
 1421     SourceLocation Loc, bool DstIsInteger) {
 1505     SourceLocation Loc) {
 2903   SourceLocation Loc = E->getExprLoc();
 4452                                              SourceLocation Loc) {
 4463                                                       SourceLocation Loc) {
 4654                                         SourceLocation Loc, const Twine &Name) {
tools/clang/lib/CodeGen/CGNonTrivialStruct.cpp
  443         SourceLocation Loc = QT->castAs<RecordType>()->getDecl()->getLocation();
tools/clang/lib/CodeGen/CGObjC.cpp
  677   SourceLocation StartLoc = OMD->getBeginLoc();
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 1626                                                  SourceLocation Loc,
 1687                                           SourceLocation Loc) {
 2646 static void getTargetEntryUniqueInfo(ASTContext &C, SourceLocation Loc,
 2721                                                 SourceLocation Loc) {
 2739     llvm::Value *CopyCtor, llvm::Value *Dtor, SourceLocation Loc) {
 2755     const VarDecl *VD, Address VDAddr, SourceLocation Loc,
 2892   SourceLocation Loc = VD->getCanonicalDecl()->getBeginLoc();
 3050 void CGOpenMPRuntime::emitParallelCall(CodeGenFunction &CGF, SourceLocation Loc,
 3117                                              SourceLocation Loc) {
 3201                                          SourceLocation Loc, const Expr *Hint) {
 3226                                        SourceLocation Loc) {
 3244                                         SourceLocation Loc) {
 3258                                           SourceLocation Loc) {
 3291     SourceLocation Loc) {
 3343                                        SourceLocation Loc,
 3424                                         SourceLocation Loc, bool IsThreads) {
 3476 void CGOpenMPRuntime::emitBarrierCall(CodeGenFunction &CGF, SourceLocation Loc,
 3626     CodeGenFunction &CGF, SourceLocation Loc,
 3708                                         SourceLocation Loc,
 3728     CodeGenFunction &CGF, SourceLocation Loc,
 3744                                           SourceLocation Loc,
 3762                                                  SourceLocation Loc,
 3773                                           SourceLocation Loc, unsigned IVSize,
 3798                                            SourceLocation Loc) {
 3811                                          SourceLocation Loc) {
 3845                                 SourceLocation Loc) {
 4064                          SourceLocation, StringRef>,
 4102         SourceLocation Loc;
 4495 emitProxyTaskFunction(CodeGenModule &CGM, SourceLocation Loc,
 4599                                             SourceLocation Loc,
 4658 emitTaskPrivateMappingFunction(CodeGenModule &CGM, SourceLocation Loc,
 4878 emitTaskDupFunction(CodeGenModule &CGM, SourceLocation Loc,
 4962 CGOpenMPRuntime::emitTaskInit(CodeGenFunction &CGF, SourceLocation Loc,
 5181 void CGOpenMPRuntime::emitTaskCall(CodeGenFunction &CGF, SourceLocation Loc,
 5376 void CGOpenMPRuntime::emitTaskLoopCall(CodeGenFunction &CGF, SourceLocation Loc,
 5559     SourceLocation Loc, llvm::Type *ArgsType, ArrayRef<const Expr *> Privates,
 5670 void CGOpenMPRuntime::emitReduction(CodeGenFunction &CGF, SourceLocation Loc,
 6001                                            SourceLocation Loc,
 6070                                            SourceLocation Loc,
 6146                                            SourceLocation Loc,
 6187     CodeGenFunction &CGF, SourceLocation Loc, ArrayRef<const Expr *> LHSExprs,
 6292                                               SourceLocation Loc,
 6319                                               SourceLocation Loc,
 6337                                        SourceLocation Loc) {
 6385     CodeGenFunction &CGF, SourceLocation Loc,
 6419 void CGOpenMPRuntime::emitCancelCall(CodeGenFunction &CGF, SourceLocation Loc,
 8841   SourceLocation Loc = D->getLocation();
 9897                                     SourceLocation Loc,
 9922                                          SourceLocation Loc) {
10565     char ISA, unsigned VecRegSize, llvm::Function *Fn, SourceLocation SLoc) {
10755       SourceLocation ExprLoc;
10908 void CGOpenMPRuntime::emitCall(CodeGenFunction &CGF, SourceLocation Loc,
10924     CodeGenFunction &CGF, SourceLocation Loc, llvm::FunctionCallee OutlinedFn,
11167                                            SourceLocation Loc,
11176     const RegionCodeGenTy &CriticalOpGen, SourceLocation Loc,
11183                                            SourceLocation Loc) {
11188                                             SourceLocation Loc) {
11194     SourceLocation Loc) {
11200     SourceLocation Loc, ArrayRef<const Expr *> CopyprivateVars,
11208                                             SourceLocation Loc,
11214                                           SourceLocation Loc,
11222     CodeGenFunction &CGF, SourceLocation Loc,
11229     CodeGenFunction &CGF, SourceLocation Loc, OpenMPDirectiveKind DKind,
11235     CodeGenFunction &CGF, SourceLocation Loc,
11241                                                      SourceLocation Loc,
11248                                               SourceLocation Loc,
11254                                               SourceLocation Loc,
11263                                                SourceLocation Loc) {
11269                                              SourceLocation Loc) {
11276                                                     SourceLocation Loc) {
11281     const VarDecl *VD, Address VDAddr, SourceLocation Loc, bool PerformInit,
11293                                     SourceLocation Loc) {
11297 void CGOpenMPSIMDRuntime::emitTaskCall(CodeGenFunction &CGF, SourceLocation Loc,
11307     CodeGenFunction &CGF, SourceLocation Loc, const OMPLoopDirective &D,
11314     CodeGenFunction &CGF, SourceLocation Loc, ArrayRef<const Expr *> Privates,
11323     CodeGenFunction &CGF, SourceLocation Loc, ArrayRef<const Expr *> LHSExprs,
11329                                                   SourceLocation Loc,
11336                                                   SourceLocation Loc,
11343                                            SourceLocation Loc) {
11348     CodeGenFunction &CGF, SourceLocation Loc,
11354                                          SourceLocation Loc, const Expr *IfCond,
11390                                         SourceLocation Loc,
11399                                              SourceLocation Loc) {
tools/clang/lib/CodeGen/CGOpenMPRuntime.h
  258   llvm::Value *emitUpdateLocation(CodeGenFunction &CGF, SourceLocation Loc,
  266   llvm::Value *getThreadID(CodeGenFunction &CGF, SourceLocation Loc);
  274   void emitCall(CodeGenFunction &CGF, SourceLocation Loc,
  280   virtual Address emitThreadIDAddress(CodeGenFunction &CGF, SourceLocation Loc);
  756                                 llvm::Value *Dtor, SourceLocation Loc);
  796   TaskResultTy emitTaskInit(CodeGenFunction &CGF, SourceLocation Loc,
  900   virtual void emitParallelCall(CodeGenFunction &CGF, SourceLocation Loc,
  912                                   SourceLocation Loc,
  920                                 SourceLocation Loc);
  923   virtual void emitTaskyieldCall(CodeGenFunction &CGF, SourceLocation Loc);
  930                                    SourceLocation Loc);
  937                                 SourceLocation Loc,
  948                                  SourceLocation Loc, bool IsThreads);
  958   virtual void emitBarrierCall(CodeGenFunction &CGF, SourceLocation Loc,
 1032   virtual void emitForDispatchInit(CodeGenFunction &CGF, SourceLocation Loc,
 1081   virtual void emitForStaticInit(CodeGenFunction &CGF, SourceLocation Loc,
 1093                                         SourceLocation Loc,
 1106                                           SourceLocation Loc, unsigned IVSize,
 1116   virtual void emitForStaticFinish(CodeGenFunction &CGF, SourceLocation Loc,
 1133   virtual llvm::Value *emitForNext(CodeGenFunction &CGF, SourceLocation Loc,
 1144                                     SourceLocation Loc);
 1150                                   SourceLocation Loc);
 1161                                          SourceLocation Loc);
 1177                                  SourceLocation Loc, bool PerformInit,
 1199                          SourceLocation Loc);
 1228   virtual void emitTaskCall(CodeGenFunction &CGF, SourceLocation Loc,
 1263   virtual void emitTaskLoopCall(CodeGenFunction &CGF, SourceLocation Loc,
 1288   llvm::Function *emitReductionFunction(SourceLocation Loc,
 1349   virtual void emitReduction(CodeGenFunction &CGF, SourceLocation Loc,
 1377                                              SourceLocation Loc,
 1389   virtual void emitTaskReductionFixups(CodeGenFunction &CGF, SourceLocation Loc,
 1397   virtual Address getTaskReductionItem(CodeGenFunction &CGF, SourceLocation Loc,
 1402   virtual void emitTaskwaitCall(CodeGenFunction &CGF, SourceLocation Loc);
 1409                                          SourceLocation Loc,
 1417   virtual void emitCancelCall(CodeGenFunction &CGF, SourceLocation Loc,
 1501                              SourceLocation Loc, llvm::Function *OutlinedFn,
 1510                                   const Expr *ThreadLimit, SourceLocation Loc);
 1627   emitOutlinedFunctionCall(CodeGenFunction &CGF, SourceLocation Loc,
 1733   void emitParallelCall(CodeGenFunction &CGF, SourceLocation Loc,
 1745                           SourceLocation Loc,
 1753                         SourceLocation Loc) override;
 1756   void emitTaskyieldCall(CodeGenFunction &CGF, SourceLocation Loc) override;
 1763                            SourceLocation Loc) override;
 1769                         const RegionCodeGenTy &SingleOpGen, SourceLocation Loc,
 1780                          SourceLocation Loc, bool IsThreads) override;
 1790   void emitBarrierCall(CodeGenFunction &CGF, SourceLocation Loc,
 1810   void emitForDispatchInit(CodeGenFunction &CGF, SourceLocation Loc,
 1830   void emitForStaticInit(CodeGenFunction &CGF, SourceLocation Loc,
 1841   void emitDistributeStaticInit(CodeGenFunction &CGF, SourceLocation Loc,
 1853   void emitForOrderedIterationEnd(CodeGenFunction &CGF, SourceLocation Loc,
 1863   void emitForStaticFinish(CodeGenFunction &CGF, SourceLocation Loc,
 1880   llvm::Value *emitForNext(CodeGenFunction &CGF, SourceLocation Loc,
 1889                             SourceLocation Loc) override;
 1895                           SourceLocation Loc) override;
 1904                                  Address VDAddr, SourceLocation Loc) override;
 1916                                  SourceLocation Loc, bool PerformInit,
 1930                  SourceLocation Loc) override;
 1959   void emitTaskCall(CodeGenFunction &CGF, SourceLocation Loc,
 1994   void emitTaskLoopCall(CodeGenFunction &CGF, SourceLocation Loc,
 2041   void emitReduction(CodeGenFunction &CGF, SourceLocation Loc,
 2068   llvm::Value *emitTaskReductionInit(CodeGenFunction &CGF, SourceLocation Loc,
 2080   void emitTaskReductionFixups(CodeGenFunction &CGF, SourceLocation Loc,
 2088   Address getTaskReductionItem(CodeGenFunction &CGF, SourceLocation Loc,
 2093   void emitTaskwaitCall(CodeGenFunction &CGF, SourceLocation Loc) override;
 2099   void emitCancellationPointCall(CodeGenFunction &CGF, SourceLocation Loc,
 2107   void emitCancelCall(CodeGenFunction &CGF, SourceLocation Loc,
 2170                      SourceLocation Loc, llvm::Function *OutlinedFn,
 2179                           const Expr *ThreadLimit, SourceLocation Loc) override;
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
  266     SourceLocation Loc = VD->getLocation();
  694     CodeGenModule &CGM, SourceLocation Loc)
 1928                                               SourceLocation Loc) {
 1938                                                 SourceLocation Loc) {
 1949                                               SourceLocation Loc) {}
 2036   SourceLocation Loc = D.getBeginLoc();
 2060     SourceLocation &Loc;
 2067         SourceLocation &Loc, const RecordDecl *GlobalizedRD,
 2109                                                  SourceLocation Loc,
 2457                                          SourceLocation Loc,
 2474     CodeGenFunction &CGF, SourceLocation Loc, llvm::Function *OutlinedFn,
 2486     CodeGenFunction &CGF, SourceLocation Loc, llvm::Value *OutlinedFn,
 2655     CodeGenFunction &CGF, SourceLocation Loc, llvm::Function *OutlinedFn,
 2728                                            SourceLocation Loc,
 2745     const RegionCodeGenTy &CriticalOpGen, SourceLocation Loc,
 2812                                     SourceLocation Loc) {
 2839                                                  SourceLocation Loc) {
 2868                             llvm::Value *Offset, SourceLocation Loc) {
 3170                                               SourceLocation Loc) {
 3461     QualType ReductionArrayTy, llvm::Function *ReduceFn, SourceLocation Loc) {
 3623     QualType ReductionArrayTy, SourceLocation Loc,
 3728     QualType ReductionArrayTy, SourceLocation Loc,
 3823     QualType ReductionArrayTy, SourceLocation Loc,
 3928     QualType ReductionArrayTy, SourceLocation Loc,
 4258     CodeGenFunction &CGF, SourceLocation Loc, ArrayRef<const Expr *> Privates,
 4509     CodeGenFunction &CGF, SourceLocation Loc, llvm::FunctionCallee OutlinedFn,
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.h
   47     SourceLocation Loc;
   49     WorkerFunctionState(CodeGenModule &CGM, SourceLocation Loc);
   78   void emitGenericVarsProlog(CodeGenFunction &CGF, SourceLocation Loc,
  157   void emitNonSPMDParallelCall(CodeGenFunction &CGF, SourceLocation Loc,
  173   void emitSPMDParallelCall(CodeGenFunction &CGF, SourceLocation Loc,
  216                                   SourceLocation Loc) override;
  224                                     SourceLocation Loc) override;
  232                           const Expr *ThreadLimit, SourceLocation Loc) override;
  273                      SourceLocation Loc, llvm::Function *OutlinedFn,
  285   void emitParallelCall(CodeGenFunction &CGF, SourceLocation Loc,
  298   void emitBarrierCall(CodeGenFunction &CGF, SourceLocation Loc,
  309                           SourceLocation Loc,
  325   virtual void emitReduction(CodeGenFunction &CGF, SourceLocation Loc,
  355       CodeGenFunction &CGF, SourceLocation Loc, llvm::FunctionCallee OutlinedFn,
  479     SourceLocation Loc;
tools/clang/lib/CodeGen/CGStmt.cpp
   36     SourceLocation Loc;
 1821                                     SourceLocation Loc) {
 1902       SourceLocation LineLoc = Str->getLocationOfByte(
 2403   SourceLocation Loc = S.getBeginLoc();
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
  331 static Address castValueFromUintptr(CodeGenFunction &CGF, SourceLocation Loc,
 1932   SourceLocation Loc = S.getBeginLoc();
 2077 static void emitEmptyOrdered(CodeGenFunction &, SourceLocation Loc,
 3135                                   SourceLocation Loc) {
 3642                                          SourceLocation Loc) {
 3654                       QualType DestType, SourceLocation Loc) {
 3692                                          QualType RValTy, SourceLocation Loc) {
 3711                                   SourceLocation Loc) {
 3735                                    SourceLocation Loc) {
 3843     llvm::AtomicOrdering AO, SourceLocation Loc,
 3868                                     SourceLocation Loc) {
 3905                             SourceLocation Loc) {
 3924                                      SourceLocation Loc) {
 4006                               SourceLocation Loc) {
tools/clang/lib/CodeGen/CodeGenAction.cpp
  344       SourceLocation Loc = SourceLocation::getFromRawEncoding(LocCookie);
  344       SourceLocation Loc = SourceLocation::getFromRawEncoding(LocCookie);
  356                                SourceLocation LocCookie);
  419   SourceLocation NewLoc =
  429                                             SourceLocation LocCookie) {
  527   SourceLocation LocCookie =
  528       SourceLocation::getFromRawEncoding(D.getLocCookie());
  566   SourceLocation DILoc;
 1025   SourceLocation Loc;
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  295 void CodeGenFunction::FinishFunction(SourceLocation EndLoc) {
  643                                     SourceLocation Loc,
  644                                     SourceLocation StartLoc) {
 1167   SourceLocation Loc = FD->getLocation();
 2046                                               QualType Ty, SourceLocation Loc,
 2047                                               SourceLocation AssumptionLoc,
 2061                                               SourceLocation AssumptionLoc,
 2067   SourceLocation Loc = E->getExprLoc();
 2076                                                  SourceLocation Location) {
 2183 void CodeGenFunction::checkTargetFeatures(SourceLocation Loc,
 2339     llvm::Value *Ptr, QualType Ty, SourceLocation Loc,
 2340     SourceLocation SecondaryLoc, llvm::Value *Alignment,
 2387 llvm::DebugLoc CodeGenFunction::SourceLocToDebugLoc(SourceLocation Location) {
tools/clang/lib/CodeGen/CodeGenFunction.h
  272   typedef llvm::function_ref<void(CodeGenFunction &, SourceLocation,
 1403   SourceLocation LastStopPoint;
 1566   SourceLocation CurEHLocation;
 1844                      SourceLocation Loc = SourceLocation(),
 1845                      SourceLocation StartLoc = SourceLocation());
 1873   void FinishFunction(SourceLocation EndLoc=SourceLocation());
 1945                                  SourceLocation Loc);
 1950                                  CFITypeCheckKind TCK, SourceLocation Loc);
 1955                           CFITypeCheckKind TCK, SourceLocation Loc);
 1961                                     llvm::Value *VTable, SourceLocation Loc);
 2013                           SourceLocation EndLoc);
 2476                                 bool NullCheckValue, SourceLocation Loc);
 2494                                       SourceLocation Loc);
 2528                               SourceLocation Loc, bool NewPointerIsChecked);
 2637   void EmitTypeCheck(TypeCheckKind TCK, SourceLocation Loc, llvm::Value *V,
 2654   llvm::DebugLoc SourceLocToDebugLoc(SourceLocation Location);
 2820                                     SourceLocation Loc,
 2821                                     SourceLocation AssumptionLoc,
 2828                                SourceLocation Loc, SourceLocation AssumptionLoc,
 2828                                SourceLocation Loc, SourceLocation AssumptionLoc,
 2833                                SourceLocation AssumptionLoc, llvm::Value *Alignment,
 2980                           SourceLocation Loc);
 3023       llvm::AtomicOrdering AO, SourceLocation Loc,
 3373                              SourceLocation Loc);
 3379   RValue EmitAtomicLoad(LValue LV, SourceLocation SL,
 3382   RValue EmitAtomicLoad(LValue lvalue, SourceLocation loc,
 3392       LValue Obj, RValue Expected, RValue Desired, SourceLocation Loc,
 3416                             SourceLocation Loc);
 3422                                 SourceLocation Loc,
 3430                                 SourceLocation Loc, LValueBaseInfo BaseInfo,
 3438   llvm::Value *EmitLoadOfScalar(LValue lvalue, SourceLocation Loc);
 3466   RValue EmitLoadOfLValue(LValue V, SourceLocation Loc);
 3468   RValue EmitLoadOfBitfieldLValue(LValue LV, SourceLocation Loc);
 3521   RValue EmitRValueForField(LValue LV, const FieldDecl *FD, SourceLocation Loc);
 3601                   llvm::CallBase **callOrInvoke, SourceLocation Loc);
 3616   void checkTargetFeatures(SourceLocation Loc, const FunctionDecl *TargetDecl);
 3892                                     QualType DstTy, SourceLocation Loc);
 3898                                              SourceLocation Loc);
 3927   ComplexPairTy EmitLoadOfComplex(LValue src, SourceLocation loc);
 4018                                   SourceLocation Location);
 4067   void EmitNullabilityCheck(LValue LHS, llvm::Value *RHS, SourceLocation Loc);
 4082                                       SourceLocation Loc,
 4106   llvm::Constant *EmitCheckSourceLocation(SourceLocation Loc);
 4123   void EmitUnreachable(SourceLocation Loc);
 4141   void EmitNonNullArgCheck(RValue RV, QualType ArgType, SourceLocation ArgLoc,
 4151                            SourceLocation loc);
 4192                                   SourceLocation Loc);
tools/clang/lib/CodeGen/CodeGenModule.cpp
  302     SourceLocation Location;
  728 void CodeGenModule::Error(SourceLocation loc, StringRef message) {
 2189 llvm::Constant *CodeGenModule::EmitAnnotationUnit(SourceLocation Loc) {
 2197 llvm::Constant *CodeGenModule::EmitAnnotationLineNo(SourceLocation L) {
 2207                                                 SourceLocation L) {
 2233                                            SourceLocation Loc) const {
 2251                                            SourceLocation Loc, QualType Ty,
 2283 bool CodeGenModule::imbueXRayAttrs(llvm::Function *Fn, SourceLocation Loc,
tools/clang/lib/CodeGen/CodeGenModule.h
  809                                      SourceLocation Loc = SourceLocation(),
 1084   void Error(SourceLocation loc, StringRef error);
 1209   llvm::Constant *EmitAnnotationUnit(SourceLocation Loc);
 1212   llvm::Constant *EmitAnnotationLineNo(SourceLocation L);
 1223                                    SourceLocation L);
 1230                               SourceLocation Loc) const;
 1232   bool isInSanitizerBlacklist(llvm::GlobalVariable *GV, SourceLocation Loc,
 1239   bool imbueXRayAttrs(llvm::Function *Fn, SourceLocation Loc,
tools/clang/lib/CodeGen/CodeGenPGO.cpp
  824   auto Loc = D->getBody()->getBeginLoc();
tools/clang/lib/CodeGen/ConstantEmitter.h
  103   llvm::Constant *emitAbstract(SourceLocation loc, const APValue &value,
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
   31 void CoverageSourceInfo::SourceRangeSkipped(SourceRange Range, SourceLocation) {
   42   Optional<SourceLocation> LocStart;
   45   Optional<SourceLocation> LocEnd;
   55   SourceMappingRegion(Counter Count, Optional<SourceLocation> LocStart,
   56                       Optional<SourceLocation> LocEnd, bool DeferRegion = false,
   67   void setStartLoc(SourceLocation Loc) { LocStart = Loc; }
   69   SourceLocation getBeginLoc() const {
   76   void setEndLoc(SourceLocation Loc) {
   81   SourceLocation getEndLoc() const {
  109   SpellingRegion(SourceManager &SM, SourceLocation LocStart,
  110                  SourceLocation LocEnd) {
  138   llvm::SmallDenseMap<FileID, std::pair<unsigned, SourceLocation>, 8>
  152   typedef llvm::SmallSet<std::pair<SourceLocation, SourceLocation>, 8>
  152   typedef llvm::SmallSet<std::pair<SourceLocation, SourceLocation>, 8>
  160   SourceLocation getPreciseTokenLocEnd(SourceLocation Loc) {
  160   SourceLocation getPreciseTokenLocEnd(SourceLocation Loc) {
  169   SourceLocation getStartOfFileOrMacro(SourceLocation Loc) {
  169   SourceLocation getStartOfFileOrMacro(SourceLocation Loc) {
  176   SourceLocation getEndOfFileOrMacro(SourceLocation Loc) {
  176   SourceLocation getEndOfFileOrMacro(SourceLocation Loc) {
  184   SourceLocation getIncludeOrExpansionLoc(SourceLocation Loc) {
  184   SourceLocation getIncludeOrExpansionLoc(SourceLocation Loc) {
  190   bool isInBuiltin(SourceLocation Loc) {
  195   bool isNestedIn(SourceLocation Loc, FileID Parent) {
  205   SourceLocation getStart(const Stmt *S) {
  206     SourceLocation Loc = S->getBeginLoc();
  213   SourceLocation getEnd(const Stmt *S) {
  214     SourceLocation Loc = S->getEndLoc();
  229     SmallVector<std::pair<SourceLocation, unsigned>, 8> FileLocs;
  231       SourceLocation Loc = Region.getBeginLoc();
  241       for (SourceLocation Parent = getIncludeOrExpansionLoc(Loc);
  249       SourceLocation Loc = FL.first;
  263   Optional<unsigned> getCoverageFileID(SourceLocation Loc) {
  288       auto LocStart = I.getBegin();
  289       auto LocEnd = I.getEnd();
  313       SourceLocation LocStart = Region.getBeginLoc();
  325       SourceLocation LocEnd = Region.getEndLoc();
  356       SourceLocation ExpandedLoc = FM.second.second;
  357       SourceLocation ParentLoc = getIncludeOrExpansionLoc(ExpandedLoc);
  367       SourceLocation LocEnd = getPreciseTokenLocEnd(ParentLoc);
  393     SourceLocation Start = getStart(Body);
  394     SourceLocation End = getEnd(Body);
  451   SourceLocation MostRecentLocation;
  454   Optional<std::pair<SourceLocation, size_t>> LastTerminatedRegion;
  481   size_t pushRegion(Counter Count, Optional<SourceLocation> StartLoc = None,
  482                     Optional<SourceLocation> EndLoc = None) {
  494   size_t completeDeferred(Counter Count, SourceLocation DeferredEndLoc) {
  536                                       SourceLocation DeferredEndLoc) {
  543     SourceLocation Start = LastTerminatedRegion->first;
  554   size_t locationDepth(SourceLocation Loc) {
  573         SourceLocation StartLoc = Region.getBeginLoc();
  574         SourceLocation EndLoc = Region.hasEndLoc()
  585             SourceLocation NestedLoc = getStartOfFileOrMacro(EndLoc);
  599             SourceLocation NestedLoc = getEndOfFileOrMacro(StartLoc);
  662     SourceLocation StartLoc = getStart(S);
  663     SourceLocation EndLoc = getEnd(S);
  680   bool isRegionAlreadyAdded(SourceLocation StartLoc, SourceLocation EndLoc) {
  680   bool isRegionAlreadyAdded(SourceLocation StartLoc, SourceLocation EndLoc) {
  692   void adjustForOutOfOrderTraversal(SourceLocation EndLoc) {
  711   void handleFileExit(SourceLocation NewLoc) {
  718     SourceLocation LCA = NewLoc;
  731     llvm::SmallSet<SourceLocation, 8> StartLocs;
  736       SourceLocation Loc = I.getBeginLoc();
  758       SourceLocation Loc = MostRecentLocation;
  760         SourceLocation FileStart = getStartOfFileOrMacro(Loc);
  776     SourceLocation StartLoc = getStart(S);
  789     SourceLocation EndLoc = getEnd(S);
  799   Optional<SourceRange> findGapAreaBetween(SourceLocation AfterLoc,
  800                                            SourceLocation BeforeLoc) {
  818   void fillGapAreaWithCount(SourceLocation StartLoc, SourceLocation EndLoc,
  818   void fillGapAreaWithCount(SourceLocation StartLoc, SourceLocation EndLoc,
  915     SourceLocation Start = getStart(S);
 1139     SourceLocation ExitLoc = getEnd(S);
tools/clang/lib/CodeGen/CoverageMappingGen.h
   40   void SourceRangeSkipped(SourceRange Range, SourceLocation EndifLoc) override;
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
  265                                      SourceLocation Loc) override;
 1778                                                   SourceLocation Loc) {
 4091                            SourceLocation Loc) {
tools/clang/lib/CodeGen/MacroPPCallbacks.cpp
   82 SourceLocation MacroPPCallbacks::getCorrectLocation(SourceLocation Loc) {
   82 SourceLocation MacroPPCallbacks::getCorrectLocation(SourceLocation Loc) {
  110 void MacroPPCallbacks::FileEntered(SourceLocation Loc) {
  111   SourceLocation LineLoc = getCorrectLocation(LastHashLoc);
  135 void MacroPPCallbacks::FileExited(SourceLocation Loc) {
  158 void MacroPPCallbacks::FileChanged(SourceLocation Loc, FileChangeReason Reason,
  169     SourceLocation HashLoc, const Token &IncludeTok, StringRef FileName,
  181   SourceLocation location = getCorrectLocation(MacroNameTok.getLocation());
  195   SourceLocation location = getCorrectLocation(MacroNameTok.getLocation());
tools/clang/lib/CodeGen/MacroPPCallbacks.h
   35   SourceLocation LastHashLoc;
   62   SourceLocation getCorrectLocation(SourceLocation Loc);
   62   SourceLocation getCorrectLocation(SourceLocation Loc);
   83   void FileEntered(SourceLocation Loc);
   88   void FileExited(SourceLocation Loc);
   97   void FileChanged(SourceLocation Loc, FileChangeReason Reason,
  102   void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
  296                                      SourceLocation Loc) override;
 1860                                                     SourceLocation Loc) {
tools/clang/lib/CodeGen/SanitizerMetadata.cpp
   30                                            SourceLocation Loc, StringRef Name,
   90 llvm::MDNode *SanitizerMetadata::getLocationMetadata(SourceLocation Loc) {
tools/clang/lib/CodeGen/SanitizerMetadata.h
   41   void reportGlobalToASan(llvm::GlobalVariable *GV, SourceLocation Loc,
   47   llvm::MDNode *getLocationMetadata(SourceLocation Loc);
tools/clang/lib/CrossTU/CrossTranslationUnit.cpp
  569 llvm::Optional<std::pair<SourceLocation, ASTUnit *>>
  571     const clang::SourceLocation &ToLoc) const {
  581   SourceLocation FromLoc =
tools/clang/lib/Edit/Commit.cpp
   24 SourceLocation Commit::Edit::getFileLocation(SourceManager &SM) const {
   25   SourceLocation Loc = SM.getLocForStartOfFile(Offset.getFID());
   32   SourceLocation Loc = getFileLocation(SM);
   37   SourceLocation Loc = SM.getLocForStartOfFile(InsertFromRangeOffs.getFID());
   48 bool Commit::insert(SourceLocation loc, StringRef text,
   64 bool Commit::insertFromRange(SourceLocation loc,
  165 bool Commit::replaceText(SourceLocation loc, StringRef text,
  182 void Commit::addInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text,
  196 void Commit::addInsertFromRange(SourceLocation OrigLoc, FileOffset Offs,
  212 void Commit::addRemove(SourceLocation OrigLoc,
  225 bool Commit::canInsert(SourceLocation loc, FileOffset &offs) {
  249 bool Commit::canInsertAfterToken(SourceLocation loc, FileOffset &offs,
  250                                  SourceLocation &AfterLoc) {
  255   SourceLocation spellLoc = SourceMgr.getSpellingLoc(loc);
  283 bool Commit::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) {
  323 bool Commit::canReplaceText(SourceLocation loc, StringRef text,
  340 bool Commit::isAtStartOfMacroExpansion(SourceLocation loc,
  341                                        SourceLocation *MacroBegin) const {
  345 bool Commit::isAtEndOfMacroExpansion(SourceLocation loc,
  346                                      SourceLocation *MacroEnd) const {
tools/clang/lib/Edit/EditedSource.cpp
   34 void EditedSource::deconstructMacroArgLoc(SourceLocation Loc,
   35                                           SourceLocation &ExpansionLoc,
   38   SourceLocation DefArgLoc =
   40   SourceLocation ImmediateExpansionLoc =
   59     SourceLocation ExpLoc;
   74 bool EditedSource::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) {
   82     SourceLocation ExpLoc;
  111 bool EditedSource::commitInsert(SourceLocation OrigLoc,
  121     SourceLocation ExpLoc;
  141 bool EditedSource::commitInsertFromRange(SourceLocation OrigLoc,
  199 void EditedSource::commitRemove(SourceLocation OrigLoc,
  338                           SourceLocation Loc, FileOffset offs,
  341   SourceLocation BeginTokLoc = Lexer::GetBeginningOfToken(Loc, SM, LangOpts);
  387   SourceLocation Loc = SM.getLocForStartOfFile(offs.getFID());
  458   SourceLocation BLoc = SourceMgr.getLocForStartOfFile(BeginOffs.getFID());
  461   SourceLocation
tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp
  275   SourceLocation LocBeforeVal = Arg0Range.getBegin();
  746   SourceLocation B = literalRange.getBegin();
  864   SourceLocation LitB = LitInfo.WithoutSuffRange.getBegin();
  865   SourceLocation LitE = LitInfo.WithoutSuffRange.getEnd();
tools/clang/lib/Format/AffectedRangeManager.cpp
   75   SourceLocation Start = First.WhitespaceRange.getBegin();
   78   SourceLocation End = Last.getStartOfNonWhitespace();
tools/clang/lib/Format/ContinuationIndenter.cpp
 1596       SourceLocation PrefixDelimiterStart =
 1607       SourceLocation SuffixDelimiterStart =
 1618     SourceLocation OriginLoc =
tools/clang/lib/Format/Format.cpp
 1282         SourceLocation Start = FormatTok->Tok.getLocation();
tools/clang/lib/Format/FormatToken.h
  477   SourceLocation getStartOfNonWhitespace() const {
tools/clang/lib/Format/FormatTokenLexer.cpp
  479   SourceLocation loc = Offset < Lex->getBuffer().end()
  500   SourceLocation Loc = To < Lex->getBuffer().size()
  613   SourceLocation TokLocation =
  632   SourceLocation WhitespaceStart =
tools/clang/lib/Format/NamespaceEndCommentsFixer.cpp
  130   auto EndLoc = RBraceTok->Tok.getEndLoc();
tools/clang/lib/Format/SortJavaScriptImports.cpp
  236   StringRef getSourceText(SourceLocation Begin, SourceLocation End) {
  236   StringRef getSourceText(SourceLocation Begin, SourceLocation End) {
  259     SourceLocation SymbolsStart = Reference.Symbols.front().Range.getBegin();
  260     SourceLocation SymbolsEnd = Reference.Symbols.back().Range.getEnd();
  280     SourceLocation Start;
tools/clang/lib/Format/TokenAnalyzer.cpp
   43   SourceLocation StartOfFile = SM.getLocForStartOfFile(ID);
   45     SourceLocation Start = StartOfFile.getLocWithOffset(Range.getOffset());
   46     SourceLocation End = Start.getLocWithOffset(Range.getLength());
tools/clang/lib/Format/UsingDeclarationsSorter.cpp
  141       auto Begin =
  143       auto End = (*UsingDeclarations)[I].Line->Last->Tok.getEndLoc();
  154     auto Begin = (*UsingDeclarations)[I].Line->First->Tok.getLocation();
  155     auto End = (*UsingDeclarations)[I].Line->Last->Tok.getEndLoc();
  156     auto SortedBegin =
  158     auto SortedEnd = SortedUsingDeclarations[I].Line->Last->Tok.getEndLoc();
tools/clang/lib/Format/WhitespaceManager.cpp
   80   SourceLocation Start = Tok.getStartOfNonWhitespace().getLocWithOffset(Offset);
  108     SourceLocation OriginalWhitespaceStart =
  110     SourceLocation PreviousOriginalWhitespaceEnd =
tools/clang/lib/Frontend/ASTUnit.cpp
 1268   SourceLocation FileLoc = SM.getFileLoc(InDiag.getLocation());
 1944                                    SourceLocation OpenParLoc) override {
 2371     SourceLocation FileLoc;
 2383     SourceLocation L = FileLoc.getLocWithOffset(SD.LocOffset);
 2389       SourceLocation BL = FileLoc.getLocWithOffset(Range.first);
 2390       SourceLocation EL = FileLoc.getLocWithOffset(Range.second);
 2400       SourceLocation BL = FileLoc.getLocWithOffset(FixIt.RemoveRange.first);
 2401       SourceLocation EL = FileLoc.getLocWithOffset(FixIt.RemoveRange.second);
 2419   SourceLocation Loc = D->getLocation();
 2427   SourceLocation FileLoc = SM.getFileLoc(Loc);
 2495 SourceLocation ASTUnit::getLocation(const FileEntry *File,
 2498   SourceLocation Loc = SM.translateFileLineCol(File, Line, Col);
 2502 SourceLocation ASTUnit::getLocation(const FileEntry *File,
 2505   SourceLocation FileLoc = SM.translateFileLineCol(File, 1, 1);
 2512 SourceLocation ASTUnit::mapLocationFromPreamble(SourceLocation Loc) const {
 2512 SourceLocation ASTUnit::mapLocationFromPreamble(SourceLocation Loc) const {
 2522     SourceLocation FileLoc
 2533 SourceLocation ASTUnit::mapLocationToPreamble(SourceLocation Loc) const {
 2533 SourceLocation ASTUnit::mapLocationToPreamble(SourceLocation Loc) const {
 2544     SourceLocation FileLoc = SourceMgr->getLocForStartOfFile(PreambleID);
 2551 bool ASTUnit::isInPreambleFileID(SourceLocation Loc) const {
 2562 bool ASTUnit::isInMainFileID(SourceLocation Loc) const {
 2573 SourceLocation ASTUnit::getEndOfPreambleFileID() const {
 2584 SourceLocation ASTUnit::getStartOfMainFileID() const {
tools/clang/lib/Frontend/CompilerInstance.cpp
 1038 compileModuleImpl(CompilerInstance &ImportingInstance, SourceLocation ImportLoc,
 1186                               SourceLocation ImportLoc,
 1249                                  SourceLocation ImportLoc,
 1250                                  SourceLocation ModuleNameLoc, Module *Module,
 1334                              Module *Mod, SourceLocation ImportLoc) {
 1619 CompilerInstance::loadModule(SourceLocation ImportLoc,
 1625   SourceLocation ModuleNameLoc = Path[0].second;
 1871         SmallVector<std::pair<IdentifierInfo *, SourceLocation>, 2> PrivPath;
 1991 void CompilerInstance::loadModuleFromSource(SourceLocation ImportLoc,
 2046                                          SourceLocation ImportLoc) {
 2056     SourceLocation TriggerLoc) {
 2097         SmallVector<std::pair<IdentifierInfo *, SourceLocation>, 2> Path;
 2126                                        SourceLocation TriggerLoc) {
tools/clang/lib/Frontend/DependencyFile.cpp
   40   void FileChanged(SourceLocation Loc, FileChangeReason Reason,
   72   void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
   85   void HasInclude(SourceLocation Loc, StringRef SpelledFilename, bool IsAngled,
  105   void moduleMapFileRead(SourceLocation Loc, const FileEntry &Entry,
tools/clang/lib/Frontend/DependencyGraph.cpp
   48   void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
   69     SourceLocation HashLoc,
tools/clang/lib/Frontend/DiagnosticRenderer.cpp
   48   void insert(SourceLocation loc, StringRef text) override {
  260 static SourceLocation
  261 retrieveMacroLocation(SourceLocation Loc, FileID MacroFileID,
  288   SourceLocation MacroLocation =
  307   SourceLocation MacroArgLocation =
  316 static void getMacroArgExpansionFileIDs(SourceLocation Loc,
  333     SourceLocation Begin, SourceLocation End, const SourceManager *SM,
  333     SourceLocation Begin, SourceLocation End, const SourceManager *SM,
  367     SourceLocation Begin = Range.getBegin(), End = Range.getEnd();
  376     llvm::SmallDenseMap<FileID, SourceLocation> BeginLocsMap;
  455 static bool checkLocForMacroArgExpansion(SourceLocation Loc,
  457                                          SourceLocation ArgumentLoc) {
  458   SourceLocation MacroLoc;
  470                                            SourceLocation ArgumentLoc) {
  471   SourceLocation BegLoc = Range.getBegin(), EndLoc = Range.getEnd();
  531   SourceLocation L = Loc;
  534   SmallVector<SourceLocation, 8> LocationStack;
tools/clang/lib/Frontend/FrontendAction.cpp
  231 static SourceLocation ReadOriginalFileName(CompilerInstance &CI,
  258   SourceLocation LineNoLoc = T.getLocation();
  430     SourceLocation EndOfLineMarker =
tools/clang/lib/Frontend/HeaderIncludeGen.cpp
   45   void FileChanged(SourceLocation Loc, FileChangeReason Reason,
  128 void HeaderIncludesCallback::FileChanged(SourceLocation Loc,
tools/clang/lib/Frontend/ModuleDependencyCollector.cpp
   48   void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
tools/clang/lib/Frontend/PrintPreprocessedOutput.cpp
  125   void FileChanged(SourceLocation Loc, FileChangeReason Reason,
  128   void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
  134   void Ident(SourceLocation Loc, StringRef str) override;
  135   void PragmaMessage(SourceLocation Loc, StringRef Namespace,
  137   void PragmaDebug(SourceLocation Loc, StringRef DebugType) override;
  138   void PragmaDiagnosticPush(SourceLocation Loc, StringRef Namespace) override;
  139   void PragmaDiagnosticPop(SourceLocation Loc, StringRef Namespace) override;
  140   void PragmaDiagnostic(SourceLocation Loc, StringRef Namespace,
  142   void PragmaWarning(SourceLocation Loc, StringRef WarningSpec,
  144   void PragmaWarningPush(SourceLocation Loc, int Level) override;
  145   void PragmaWarningPop(SourceLocation Loc) override;
  146   void PragmaExecCharsetPush(SourceLocation Loc, StringRef Str) override;
  147   void PragmaExecCharsetPop(SourceLocation Loc) override;
  148   void PragmaAssumeNonNullBegin(SourceLocation Loc) override;
  149   void PragmaAssumeNonNullEnd(SourceLocation Loc) override;
  156   bool MoveToLine(SourceLocation Loc) {
  259 void PrintPPOutputPPCallbacks::FileChanged(SourceLocation Loc,
  274     SourceLocation IncludeLoc = UserLoc.getIncludeLoc();
  326     SourceLocation HashLoc,
  400 void PrintPPOutputPPCallbacks::Ident(SourceLocation Loc, StringRef S) {
  445 void PrintPPOutputPPCallbacks::PragmaMessage(SourceLocation Loc,
  473 void PrintPPOutputPPCallbacks::PragmaDebug(SourceLocation Loc,
  485 PragmaDiagnosticPush(SourceLocation Loc, StringRef Namespace) {
  493 PragmaDiagnosticPop(SourceLocation Loc, StringRef Namespace) {
  500 void PrintPPOutputPPCallbacks::PragmaDiagnostic(SourceLocation Loc,
  528 void PrintPPOutputPPCallbacks::PragmaWarning(SourceLocation Loc,
  540 void PrintPPOutputPPCallbacks::PragmaWarningPush(SourceLocation Loc,
  551 void PrintPPOutputPPCallbacks::PragmaWarningPop(SourceLocation Loc) {
  558 void PrintPPOutputPPCallbacks::PragmaExecCharsetPush(SourceLocation Loc,
  569 void PrintPPOutputPPCallbacks::PragmaExecCharsetPop(SourceLocation Loc) {
  577 PragmaAssumeNonNullBegin(SourceLocation Loc) {
  585 PragmaAssumeNonNullEnd(SourceLocation Loc) {
  744       SourceLocation StartLoc = Tok.getLocation();
tools/clang/lib/Frontend/Rewrite/FixItRewriter.cpp
   67   void insert(SourceLocation loc, StringRef text) override {
  197 void FixItRewriter::Diag(SourceLocation Loc, unsigned DiagID) {
tools/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp
   56   SourceLocation LastInclusionLocation;
   72   void FileChanged(SourceLocation Loc, FileChangeReason Reason,
   77   void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
   83   void If(SourceLocation Loc, SourceRange ConditionRange,
   85   void Elif(SourceLocation Loc, SourceRange ConditionRange,
   86             ConditionValueKind ConditionValue, SourceLocation IfLoc) override;
   98   const IncludedFile *FindIncludeAtLocation(SourceLocation Loc) const;
   99   const Module *FindModuleAtLocation(SourceLocation Loc) const;
  100   const Module *FindEnteredModule(SourceLocation Loc) const;
  101   bool IsIfAtLocationTrue(SourceLocation Loc) const;
  156 void InclusionRewriter::FileChanged(SourceLocation Loc,
  191 void InclusionRewriter::InclusionDirective(SourceLocation HashLoc,
  210 void InclusionRewriter::If(SourceLocation Loc, SourceRange ConditionRange,
  218 void InclusionRewriter::Elif(SourceLocation Loc, SourceRange ConditionRange,
  220                              SourceLocation IfLoc) {
  230 InclusionRewriter::FindIncludeAtLocation(SourceLocation Loc) const {
  240 InclusionRewriter::FindModuleAtLocation(SourceLocation Loc) const {
  250 InclusionRewriter::FindEnteredModule(SourceLocation Loc) const {
  257 bool InclusionRewriter::IsIfAtLocationTrue(SourceLocation Loc) const {
  428             SourceLocation Loc = HashToken.getLocation();
tools/clang/lib/Frontend/Rewrite/RewriteMacros.cpp
  114     SourceLocation PPLoc = SM.getExpansionLoc(PPTok.getLocation());
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
  288     void InsertText(SourceLocation Loc, StringRef Str,
  298     void ReplaceText(SourceLocation Start, unsigned OrigLength,
  312     void ConvertSourceLocationToLineDirective(SourceLocation Loc,
  364                                        SourceLocation OrigEnd);
  414                                            SourceLocation StartLoc=SourceLocation(),
  415                                            SourceLocation EndLoc=SourceLocation());
  424                            SourceLocation StartLoc=SourceLocation(),
  425                            SourceLocation EndLoc=SourceLocation());
  477     void SynthesizeBlockLiterals(SourceLocation FunLocStart,
  722   SourceLocation Loc = D->getLocation();
  750           SourceLocation StartLoc = IFace->getBeginLoc();
  775           SourceLocation StartLoc = Proto->getBeginLoc();
  805   SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID);
  821         SourceLocation ImportLoc =
  921   SourceLocation startGetterSetterLoc;
  924     SourceLocation startLoc = PID->getBeginLoc();
 1060   SourceLocation startLoc = ClassDecl->getBeginLoc();
 1108   SourceLocation LocStart = Method->getBeginLoc();
 1109   SourceLocation LocEnd = Method->getEndLoc();
 1121   SourceLocation Loc = prop->getAtLoc();
 1128   SourceLocation LocStart = CatDecl->getBeginLoc();
 1153   SourceLocation LocStart = PDecl->getBeginLoc();
 1167   SourceLocation LocEnd = PDecl->getAtEndRange().getBegin();
 1175       SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf);
 1180       SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf);
 1188   SourceLocation LocStart = (*D.begin())->getBeginLoc();
 1197   SourceLocation LocStart = DG[0]->getBeginLoc();
 1351     SourceLocation LocStart = OMD->getBeginLoc();
 1352     SourceLocation LocEnd = OMD->getCompoundBody()->getBeginLoc();
 1362     SourceLocation LocStart = OMD->getBeginLoc();
 1363     SourceLocation LocEnd = OMD->getCompoundBody()->getBeginLoc();
 1443   SmallVector<SourceLocation, 1> SelLocs;
 1527   SmallVector<SourceLocation, 1> SelLocs;
 1608   SourceLocation startLoc = S->getBeginLoc();
 1617                                           SourceLocation Loc,
 1638   SourceLocation startLoc = S->getBeginLoc();
 1679                                                 SourceLocation OrigEnd) {
 1686   SourceLocation startLoc = S->getBeginLoc();
 1692   SourceLocation ForEachLoc = S->getForLoc();
 1745   SourceLocation rightParenLoc = S->getRParenLoc();
 1747   SourceLocation lparenLoc = startLoc.getLocWithOffset(rparenBuf-startBuf);
 1824     SourceLocation endBodyLoc = OrigEnd.getLocWithOffset(1);
 1837     SourceLocation endBodyLoc = OrigEnd.getLocWithOffset(semiBuf-stmtBuf+1);
 1860   SourceLocation startLoc = S->getBeginLoc();
 1866   SourceLocation SynchLoc = S->getAtSynchronizedLoc();
 1883   SourceLocation RParenExprLoc = S->getSynchBody()->getBeginLoc();
 1888   SourceLocation LBranceLoc = S->getSynchBody()->getBeginLoc();
 1893   SourceLocation startRBraceLoc = S->getSynchBody()->getEndLoc();
 1921   SourceLocation startLoc = S->getAtLoc();
 1933   SourceLocation TryLocation = S->getAtTryLoc();
 1944   SourceLocation startLoc = S->getBeginLoc();
 1971           SourceLocation rParenLoc = Catch->getRParenLoc();
 1988           SourceLocation lBraceLoc = Catch->getCatchBody()->getBeginLoc();
 2001     SourceLocation FinallyLoc = finalStmt->getBeginLoc();
 2013     SourceLocation startFinalLoc = finalStmt->getBeginLoc();
 2016     SourceLocation startFinalBodyLoc = body->getBeginLoc();
 2021     SourceLocation endFinalBodyLoc = body->getEndLoc();
 2035   SourceLocation startLoc = S->getBeginLoc();
 2052   SourceLocation endLoc = S->getEndLoc();
 2056   SourceLocation semiLoc = startLoc.getLocWithOffset(semiBuf-startBuf);
 2091                                                 SourceLocation StartLoc,
 2092                                                 SourceLocation EndLoc) {
 2162     SourceLocation Loc, EndLoc;
 2180       SourceLocation LessLoc = Loc.getLocWithOffset(startRef-startBuf);
 2181       SourceLocation GreaterLoc = Loc.getLocWithOffset(endRef-startBuf+1);
 2190   SourceLocation Loc;
 2229       SourceLocation LessLoc = Loc.getLocWithOffset(startRef-endBuf);
 2230       SourceLocation GreaterLoc = Loc.getLocWithOffset(endRef-endBuf+1);
 2251         SourceLocation LessLoc =
 2253         SourceLocation GreaterLoc =
 2284   SourceLocation DeclLoc = ND->getTypeSpecStartLoc();
 2290     SourceLocation startLoc;
 2300     SourceLocation X = ND->getEndLoc();
 2375   SourceLocation FunLocStart = FD->getTypeSpecStartLoc();
 2622   SourceLocation StartLoc = Exp->getBeginLoc();
 2623   SourceLocation EndLoc = Exp->getEndLoc();
 2705   SourceLocation StartLoc = Exp->getBeginLoc();
 2706   SourceLocation EndLoc = Exp->getEndLoc();
 2826   SourceLocation StartLoc = Exp->getBeginLoc();
 2827   SourceLocation EndLoc = Exp->getEndLoc();
 3033 static SourceLocation getFunctionSourceLocation (RewriteModernObjC &R,
 3049   SourceLocation Location = D->getLocation();
 3154   SourceLocation FunLocStart;
 3188                                     SourceLocation StartLoc,
 3189                                     SourceLocation EndLoc) {
 3604   SourceLocation TagLocation;
 3885   SourceLocation LocStart = CDecl->getBeginLoc();
 3886   SourceLocation LocEnd = CDecl->getEndOfDefinitionLoc();
 4043   SourceLocation BlockLoc = CE->getExprLoc();
 4320 void RewriteModernObjC::SynthesizeBlockLiterals(SourceLocation FunLocStart,
 4430   SourceLocation FunLocStart =
 4452   SourceLocation FunLocStart = MD->getBeginLoc();
 4714   SourceLocation LocStart = CE->getLParenLoc();
 4715   SourceLocation LocEnd = CE->getRParenLoc();
 4767   SourceLocation DeclLoc = FD->getLocation();
 4868   SourceLocation DeclLoc = ND->getLocation();
 4884   SourceLocation Start = DeclLoc.getLocWithOffset(startBuf-endBuf);
 5015   SourceLocation DeclLoc = ND->getTypeSpecStartLoc();
 5021   SourceLocation X = ND->getEndLoc();
 5049   SourceLocation FunLocStart;
 5136     SourceLocation startLoc;
 5151     SourceLocation separatorLoc =
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
  239     void InsertText(SourceLocation Loc, StringRef Str,
  249     void ReplaceText(SourceLocation Start, unsigned OrigLength,
  307                                        SourceLocation OrigEnd);
  351                                            SourceLocation StartLoc=SourceLocation(),
  352                                            SourceLocation EndLoc=SourceLocation());
  360                            SourceLocation StartLoc=SourceLocation(),
  361                            SourceLocation EndLoc=SourceLocation());
  387     void SynthesizeBlockLiterals(SourceLocation FunLocStart,
  651   SourceLocation Loc = D->getLocation();
  682           SourceLocation StartLoc = IFace->getBeginLoc();
  701           SourceLocation StartLoc = Proto->getBeginLoc();
  731   SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID);
  747         SourceLocation ImportLoc =
  771   SourceLocation startLoc = PID->getBeginLoc();
  777   SourceLocation onePastSemiLoc =
  903   SourceLocation startLoc = ClassDecl->getBeginLoc();
  947   SourceLocation LocStart = Method->getBeginLoc();
  948   SourceLocation LocEnd = Method->getEndLoc();
  960   SourceLocation Loc = prop->getAtLoc();
  967   SourceLocation LocStart = CatDecl->getBeginLoc();
  985   SourceLocation LocStart = PDecl->getBeginLoc();
  999   SourceLocation LocEnd = PDecl->getAtEndRange().getBegin();
 1007       SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf);
 1012       SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf);
 1020   SourceLocation LocStart = (*D.begin())->getBeginLoc();
 1029   SourceLocation LocStart = DG[0]->getBeginLoc();
 1173     SourceLocation LocStart = OMD->getBeginLoc();
 1174     SourceLocation LocEnd = OMD->getCompoundBody()->getBeginLoc();
 1184     SourceLocation LocStart = OMD->getBeginLoc();
 1185     SourceLocation LocEnd = OMD->getCompoundBody()->getBeginLoc();
 1257   SmallVector<SourceLocation, 1> SelLocs;
 1333   SmallVector<SourceLocation, 1> SelLocs;
 1415   SourceLocation startLoc = S->getBeginLoc();
 1432   SourceLocation startLoc = S->getBeginLoc();
 1473                                                 SourceLocation OrigEnd) {
 1480   SourceLocation startLoc = S->getBeginLoc();
 1536   SourceLocation rightParenLoc = S->getRParenLoc();
 1538   SourceLocation lparenLoc = startLoc.getLocWithOffset(rparenBuf-startBuf);
 1615     SourceLocation endBodyLoc = OrigEnd.getLocWithOffset(1);
 1628     SourceLocation endBodyLoc = OrigEnd.getLocWithOffset(semiBuf-stmtBuf+1);
 1644   SourceLocation startLoc = S->getBeginLoc();
 1657   SourceLocation endLoc = S->getSynchBody()->getBeginLoc();
 1660   SourceLocation rparenLoc = startLoc.getLocWithOffset(endBuf-startBuf);
 1674   SourceLocation lastCurlyLoc = startLoc;
 1745     SourceLocation startLoc = S->getBeginLoc();
 1749     SourceLocation onePastSemiLoc = startLoc.getLocWithOffset(semiBuf-startBuf+1);
 1766     SourceLocation startLoc = S->getBeginLoc();
 1771     SourceLocation onePastSemiLoc = startLoc.getLocWithOffset(semiBuf-startBuf+1);
 1785   SourceLocation startLoc = S->getBeginLoc();
 1806   SourceLocation lastCurlyLoc = startLoc;
 1842       SourceLocation bodyLoc = lastCatchBody->getBeginLoc();
 1868       SourceLocation rParenLoc = Catch->getRParenLoc();
 1869       SourceLocation bodyLoc = lastCatchBody->getBeginLoc();
 1884     SourceLocation bodyLoc = lastCatchBody->getEndLoc();
 1910     SourceLocation startLoc = body->getBeginLoc();
 1911     SourceLocation endLoc = body->getEndLoc();
 1953   SourceLocation startLoc = S->getBeginLoc();
 1972   SourceLocation semiLoc = startLoc.getLocWithOffset(semiBuf-startBuf);
 2006                                           SourceLocation StartLoc,
 2007                                           SourceLocation EndLoc) {
 2078     SourceLocation Loc, EndLoc;
 2096       SourceLocation LessLoc = Loc.getLocWithOffset(startRef-startBuf);
 2097       SourceLocation GreaterLoc = Loc.getLocWithOffset(endRef-startBuf+1);
 2106   SourceLocation Loc;
 2141       SourceLocation LessLoc = Loc.getLocWithOffset(startRef-endBuf);
 2142       SourceLocation GreaterLoc = Loc.getLocWithOffset(endRef-endBuf+1);
 2163         SourceLocation LessLoc =
 2165         SourceLocation GreaterLoc =
 2196   SourceLocation DeclLoc = ND->getTypeSpecStartLoc();
 2202     SourceLocation startLoc;
 2212     SourceLocation X = ND->getEndLoc();
 2287   SourceLocation FunLocStart = FD->getTypeSpecStartLoc();
 2615                                     SourceLocation StartLoc,
 2616                                     SourceLocation EndLoc) {
 3095   SourceLocation LocStart = CDecl->getBeginLoc();
 3096   SourceLocation LocEnd = CDecl->getEndOfDefinitionLoc();
 3137       SourceLocation L = RCDecl ? CDecl->getSuperClassLoc() :
 3161       SourceLocation OnePastCurly =
 3170         SourceLocation atLoc = LocStart.getLocWithOffset(cursor-startBuf);
 3187         SourceLocation atLoc = LocStart.getLocWithOffset(cursor-startBuf);
 3194         SourceLocation caretLoc = LocStart.getLocWithOffset(cursor-startBuf);
 3530 void RewriteObjC::SynthesizeBlockLiterals(SourceLocation FunLocStart,
 3619   SourceLocation FunLocStart = FD->getTypeSpecStartLoc();
 3639   SourceLocation FunLocStart = MD->getBeginLoc();
 3883   SourceLocation LocStart = CE->getLParenLoc();
 3884   SourceLocation LocEnd = CE->getRParenLoc();
 3921   SourceLocation DeclLoc = FD->getLocation();
 4022   SourceLocation DeclLoc = ND->getLocation();
 4038   SourceLocation Start = DeclLoc.getLocWithOffset(startBuf-endBuf);
 4172   SourceLocation DeclLoc = ND->getTypeSpecStartLoc();
 4178   SourceLocation X = ND->getEndLoc();
 4206   SourceLocation FunLocStart;
 4268     SourceLocation startLoc;
 4305     SourceLocation semiLoc =
tools/clang/lib/Frontend/TextDiagnostic.cpp
  874       SourceLocation B = SM.getExpansionLoc(RI->getBegin());
  876       SourceLocation E = ERange.getEnd();
  940   SourceLocation Begin = R.getBegin();
  941   SourceLocation End = R.getEnd();
  993   SourceLocation Begin = R.getBegin();
  994   SourceLocation End = R.getEnd();
 1338     SourceLocation BLoc = I->RemoveRange.getBegin();
 1339     SourceLocation ELoc = I->RemoveRange.getEnd();
tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp
   67   void FileChanged(SourceLocation Loc, FileChangeReason Reason,
   91   StandardDirective(SourceLocation DirectiveLoc, SourceLocation DiagnosticLoc,
   91   StandardDirective(SourceLocation DirectiveLoc, SourceLocation DiagnosticLoc,
  109   RegexDirective(SourceLocation DirectiveLoc, SourceLocation DiagnosticLoc,
  109   RegexDirective(SourceLocation DirectiveLoc, SourceLocation DiagnosticLoc,
  289   SourceLocation DirectivePos, ContentBegin;
  297                      SourceLocation ExpectedLoc, bool MatchAnyLine = false) {
  328     SourceLocation DefLoc;
  329     SourceLocation RedefLoc;
  330     SourceLocation UseLoc;
  342   void addMarker(StringRef MarkerName, SourceLocation Pos) {
  402                            Preprocessor *PP, SourceLocation Pos,
  499     SourceLocation ExpectedLoc;
  718     SourceLocation Loc = Info.getLocation();
  754   SourceLocation CommentBegin = Comment.getBegin();
  901 static bool IsFromSameFile(SourceManager &SM, SourceLocation DirectiveLoc,
  902                            SourceLocation DiagnosticLoc) {
 1115                                              SourceLocation DirectiveLoc,
 1116                                              SourceLocation DiagnosticLoc,
tools/clang/lib/Index/CommentToXML.cpp
  878       SourceLocation Loc = DI->CurrentDecl->getLocation();
tools/clang/lib/Index/FileIndexRecord.cpp
   48     SourceLocation Loc = SM.getFileLoc(D->getLocation());
tools/clang/lib/Index/IndexBody.cpp
  144     SourceLocation Loc = E->getMemberLoc();
  176     SourceLocation Loc = NameInfo.getLoc();
tools/clang/lib/Index/IndexDecl.cpp
  141     SourceLocation MethodLoc = D->getSelectorStartLoc();
  145     SourceLocation AttrLoc;
  369                                  SourceLocation SuperLoc) {
  373       SourceLocation Loc = *LI;
  387       SourceLocation SuperLoc = D->getSuperClassLoc();
  464     SourceLocation CategoryLoc = D->getCategoryNameLoc();
  482     SourceLocation CategoryLoc = D->getCategoryNameLoc();
  518     SourceLocation Loc = D->getLocation();
  555         SourceLocation IvarLoc = D->getPropertyIvarDeclLoc();
tools/clang/lib/Index/IndexTypeSourceInfo.cpp
   49     SourceLocation Loc = TTPL.getNameLoc();
   56     SourceLocation Loc = TL.getNameLoc();
  137                                            SourceLocation TemplNameLoc,
  244   SourceLocation Loc = NNS.getLocalBeginLoc();
tools/clang/lib/Index/IndexingContext.cpp
   57 bool IndexingContext::handleDecl(const Decl *D, SourceLocation Loc,
   73 bool IndexingContext::handleReference(const NamedDecl *D, SourceLocation Loc,
   94                                    ArrayRef<SourceLocation> IdLocs,
  110   SourceLocation Loc;
  351 bool IndexingContext::handleDeclOccurrence(const Decl *D, SourceLocation Loc,
  449                                          SourceLocation Loc,
  456                                            SourceLocation Loc,
  463                                            SourceLocation Loc,
tools/clang/lib/Index/IndexingContext.h
   73   bool handleDecl(const Decl *D, SourceLocation Loc,
   78   bool handleReference(const NamedDecl *D, SourceLocation Loc,
   86   void handleMacroDefined(const IdentifierInfo &Name, SourceLocation Loc,
   89   void handleMacroUndefined(const IdentifierInfo &Name, SourceLocation Loc,
   92   void handleMacroReference(const IdentifierInfo &Name, SourceLocation Loc,
  127   bool handleDeclOccurrence(const Decl *D, SourceLocation Loc,
tools/clang/lib/Index/USRGeneration.cpp
   25 static bool printLoc(llvm::raw_ostream &OS, SourceLocation Loc,
  190   SourceLocation Loc = D->getLocation();
 1095 bool clang::index::generateUSRForMacro(StringRef MacroName, SourceLocation Loc,
tools/clang/lib/Lex/DependencyDirectivesSourceMinimizer.cpp
   38             SourceLocation InputSourceLoc)
  103   SourceLocation InputSourceLoc;
  951     SourceLocation InputSourceLoc) {
tools/clang/lib/Lex/HeaderSearch.cpp
  320     StringRef FileName, SourceLocation IncludeLoc, const DirectoryEntry *Dir,
  351     StringRef &Filename, HeaderSearch &HS, SourceLocation IncludeLoc,
  639                                   SourceLocation IncludeLoc) {
  689 diagnoseFrameworkInclude(DiagnosticsEngine &Diags, SourceLocation IncludeLoc,
  729     StringRef Filename, SourceLocation IncludeLoc, bool isAngled,
tools/clang/lib/Lex/Lexer.cpp
  146 Lexer::Lexer(SourceLocation fileloc, const LangOptions &langOpts,
  186 Lexer *Lexer::Create_PragmaLexer(SourceLocation SpellingLoc,
  187                                  SourceLocation ExpansionLocStart,
  188                                  SourceLocation ExpansionLocEnd,
  324 StringRef Lexer::getSpelling(SourceLocation loc,
  444 unsigned Lexer::MeasureTokenLength(SourceLocation Loc,
  455 bool Lexer::getRawToken(SourceLocation Loc, Token &Result,
  506 static SourceLocation getBeginningOfFileToken(SourceLocation Loc,
  506 static SourceLocation getBeginningOfFileToken(SourceLocation Loc,
  527   SourceLocation LexerStartLoc = Loc.getLocWithOffset(-LocInfo.second);
  554 SourceLocation Lexer::GetBeginningOfToken(SourceLocation Loc,
  554 SourceLocation Lexer::GetBeginningOfToken(SourceLocation Loc,
  563   SourceLocation FileLoc = SM.getSpellingLoc(Loc);
  564   SourceLocation BeginFileLoc = getBeginningOfFileToken(FileLoc, SM, LangOpts);
  589   SourceLocation FileLoc = SourceLocation::getFromRawEncoding(StartOffset);
  589   SourceLocation FileLoc = SourceLocation::getFromRawEncoding(StartOffset);
  596   SourceLocation ActiveCommentLoc;
  708   SourceLocation End;
  718 unsigned Lexer::getTokenPrefixLength(SourceLocation TokStart, unsigned CharNo,
  778 SourceLocation Lexer::getLocForEndOfToken(SourceLocation Loc, unsigned Offset,
  778 SourceLocation Lexer::getLocForEndOfToken(SourceLocation Loc, unsigned Offset,
  800 bool Lexer::isAtStartOfMacroExpansion(SourceLocation loc,
  803                                       SourceLocation *MacroBegin) {
  806   SourceLocation expansionLoc;
  822 bool Lexer::isAtEndOfMacroExpansion(SourceLocation loc,
  825                                     SourceLocation *MacroEnd) {
  828   SourceLocation spellLoc = SM.getSpellingLoc(loc);
  833   SourceLocation afterLoc = loc.getLocWithOffset(tokLen);
  834   SourceLocation expansionLoc;
  851   SourceLocation Begin = Range.getBegin();
  852   SourceLocation End = Range.getEnd();
  878   SourceLocation Begin = Range.getBegin();
  879   SourceLocation End = Range.getEnd();
  904   SourceLocation MacroBegin, MacroEnd;
  975 StringRef Lexer::getImmediateMacroName(SourceLocation Loc,
  995     SourceLocation SpellLoc = Expansion.getSpellingLoc();
 1023     SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts) {
 1071 StringRef Lexer::getIndentationForLine(SourceLocation Loc,
 1100 static LLVM_ATTRIBUTE_NOINLINE SourceLocation GetMappedTokenLoc(
 1101     Preprocessor &PP, SourceLocation FileLoc, unsigned CharNo, unsigned TokLen);
 1102 static SourceLocation GetMappedTokenLoc(Preprocessor &PP,
 1103                                         SourceLocation FileLoc,
 1114   SourceLocation SpellingLoc = SM.getSpellingLoc(FileLoc);
 1126 SourceLocation Lexer::getSourceLocation(const char *Loc,
 1237 Optional<Token> Lexer::findNextToken(SourceLocation Loc,
 1270 SourceLocation Lexer::findLocationAfterToken(
 1271     SourceLocation Loc, tok::TokenKind TKind, const SourceManager &SM,
 1276   SourceLocation TokenLoc = Tok->getLocation();
 2755     SourceLocation EndLoc = getSourceLocation(BufferEnd);
 2956     SourceLocation Loc = FileLoc.getLocWithOffset(CurPtr-BufferStart);
tools/clang/lib/Lex/LiteralSupport.cpp
   63   SourceLocation Begin =
   66   SourceLocation End =
   81   SourceLocation Begin =
  526                                            SourceLocation TokLoc,
  752 void NumericLiteralParser::ParseDecimalOrOctalCommon(SourceLocation TokLoc){
  822 void NumericLiteralParser::checkSeparator(SourceLocation TokLoc,
  845 void NumericLiteralParser::ParseNumberStartingWithZero(SourceLocation TokLoc) {
 1217                                      SourceLocation Loc, Preprocessor &PP,
 1537   SourceLocation UDSuffixTokLoc;
 1584             SourceLocation TokLoc = StringToks[i].getLocation();
 1804 void StringLiteralParser::DiagnoseLexingError(SourceLocation Loc) {
tools/clang/lib/Lex/MacroArgs.cpp
  210                                    SourceLocation ExpansionLocStart,
  211                                    SourceLocation ExpansionLocEnd) {
tools/clang/lib/Lex/MacroInfo.cpp
   31 MacroInfo::MacroInfo(SourceLocation DefLoc)
   47   SourceLocation macroStart = firstToken.getLocation();
   48   SourceLocation macroEnd = lastToken.getLocation();
  180   SourceLocation UndefLoc;
  202 MacroDirective::findDirectiveAtLoc(SourceLocation L,
tools/clang/lib/Lex/ModuleMap.cpp
  470                                         SourceLocation FilenameLoc,
  815 Module *ModuleMap::createGlobalModuleFragmentForModuleUnit(SourceLocation Loc) {
  825                                                        SourceLocation Loc) {
  833 Module *ModuleMap::createModuleForInterfaceUnit(SourceLocation Loc,
 1366     SourceLocation getLocation() const {
 1367       return SourceLocation::getFromRawEncoding(Location);
 1395     SourceLocation CurrModuleDeclLoc;
 1428     SourceLocation consumeToken();
 1434     using ModuleId = SmallVector<std::pair<std::string, SourceLocation>, 2>;
 1440     void parseHeaderDecl(MMToken::TokenKind, SourceLocation LeadingLoc);
 1441     void parseUmbrellaDirDecl(SourceLocation UmbrellaLoc);
 1454     void diagnosePrivateModules(SourceLocation ExplicitLoc,
 1455                                 SourceLocation FrameworkLoc);
 1476     SourceLocation getLocation() { return Tok.getLocation(); }
 1481 SourceLocation ModuleMapParser::consumeToken() {
 1482   SourceLocation Result = Tok.getLocation();
 1726 void ModuleMapParser::diagnosePrivateModules(SourceLocation ExplicitLoc,
 1727                                              SourceLocation FrameworkLoc) {
 1755       SourceLocation FixItInitBegin = CurrModuleDeclLoc;
 1810   SourceLocation ExplicitLoc;
 1811   SourceLocation FrameworkLoc;
 1898   SourceLocation ModuleNameLoc = Id.back().second;
 1912   SourceLocation LBraceLoc = consumeToken();
 1989   SourceLocation StartLoc =
 2043       SourceLocation UmbrellaLoc = consumeToken();
 2108   SourceLocation ExternLoc = consumeToken(); // 'extern' keyword
 2246                                       SourceLocation LeadingLoc) {
 2304     SourceLocation LBraceLoc = consumeToken();
 2309       SourceLocation Loc = consumeToken();
 2374 void ModuleMapParser::parseUmbrellaDirDecl(SourceLocation UmbrellaLoc) {
 2384   SourceLocation DirNameLoc = consumeToken();
 2461   SourceLocation ExportLoc = consumeToken();
 2541   auto KWLoc = consumeToken();
 2558   SourceLocation LinkLoc = consumeToken();
 2590   SourceLocation ConfigMacrosLoc = consumeToken();
 2660   SourceLocation ConflictLoc = consumeToken();
 2699   SourceLocation StarLoc = consumeToken();
 2771   SourceLocation LBraceLoc = consumeToken();
 2858     SourceLocation LSquareLoc = consumeToken();
 2967                                    SourceLocation ExternModuleLoc) {
 2993   SourceLocation Start = L.getSourceLocation();
tools/clang/lib/Lex/PPConditionalDirectiveRecord.cpp
   39   SourceLocation uppRegion;
   46 SourceLocation PPConditionalDirectiveRecord::findConditionalDirectiveRegionLoc(
   47                                                      SourceLocation Loc) const {
   75 void PPConditionalDirectiveRecord::If(SourceLocation Loc,
   82 void PPConditionalDirectiveRecord::Ifdef(SourceLocation Loc,
   89 void PPConditionalDirectiveRecord::Ifndef(SourceLocation Loc,
   96 void PPConditionalDirectiveRecord::Elif(SourceLocation Loc,
   99                                         SourceLocation IfLoc) {
  104 void PPConditionalDirectiveRecord::Else(SourceLocation Loc,
  105                                         SourceLocation IfLoc) {
  110 void PPConditionalDirectiveRecord::Endif(SourceLocation Loc,
  111                                          SourceLocation IfLoc) {
tools/clang/lib/Lex/PPDirectives.cpp
   58 MacroInfo *Preprocessor::AllocateMacroInfo(SourceLocation L) {
   65                                                            SourceLocation Loc) {
   70 Preprocessor::AllocateUndefMacroDirective(SourceLocation UndefLoc) {
   75 Preprocessor::AllocateVisibilityMacroDirective(SourceLocation Loc,
  278   SourceLocation MacroNameLoc = MacroNameTok.getLocation();
  342 SourceLocation Preprocessor::CheckEndOfDirective(const char *DirType,
  374     SourceLocation HashLoc) {
  412 void Preprocessor::SkipExcludedConditionalBlock(SourceLocation HashTokenLoc,
  413                                                 SourceLocation IfTokenLoc,
  416                                                 SourceLocation ElseLoc) {
  628 Module *Preprocessor::getModuleForLocation(SourceLocation Loc) {
  649 Preprocessor::getModuleHeaderToIncludeForDiagnostics(SourceLocation IncLoc,
  651                                                      SourceLocation Loc) {
  719     SourceLocation FilenameLoc, StringRef Filename, bool isAngled,
  875                                                        SourceLocation HashLoc) {
 1257     SourceLocation IncLoc = PLoc.getIncludeLoc();
 1498 bool Preprocessor::GetIncludeFilenameSpelling(SourceLocation Loc,
 1563     Preprocessor &PP, SourceLocation HashLoc, Token &IncludeTok,
 1564     ArrayRef<std::pair<IdentifierInfo *, SourceLocation>> Path,
 1565     SourceLocation PathEnd) {
 1675 void Preprocessor::HandleIncludeDirective(SourceLocation HashLoc,
 1694   SourceLocation EndLoc =
 1716     SourceLocation FilenameLoc, CharSourceRange FilenameRange,
 1854     SourceLocation HashLoc, Token &IncludeTok, Token &FilenameTok,
 1855     SourceLocation EndLoc, const DirectoryLookup *LookupFrom,
 1859   SourceLocation CharEnd = FilenameTok.getEndLoc();
 1873   SourceLocation StartLoc = IsImportDecl ? IncludeTok.getLocation() : HashLoc;
 1911   SourceLocation FilenameLoc = FilenameTok.getLocation();
 1987     SmallVector<std::pair<IdentifierInfo *, SourceLocation>, 2> Path;
 2162   SourceLocation IncludePos = FilenameTok.getLocation();
 2218 void Preprocessor::HandleIncludeNextDirective(SourceLocation HashLoc,
 2271 void Preprocessor::HandleImportDirective(SourceLocation HashLoc,
 2285 void Preprocessor::HandleIncludeMacrosDirective(SourceLocation HashLoc,
 2289   SourceLocation Loc = IncludeMacrosTok.getLocation();
tools/clang/lib/Lex/PPExpressions.cpp
   63   void setRange(SourceLocation L) { Range.setBegin(L); Range.setEnd(L); }
   64   void setRange(SourceLocation B, SourceLocation E) {
   64   void setRange(SourceLocation B, SourceLocation E) {
   67   void setBegin(SourceLocation L) { Range.setBegin(L); }
   68   void setEnd(SourceLocation L) { Range.setEnd(L); }
  102   SourceLocation beginLoc(PeekTok.getLocation());
  109   SourceLocation LParenLoc;
  392     SourceLocation Start = PeekTok.getLocation();
  422     SourceLocation Start = PeekTok.getLocation();
  431     SourceLocation Loc = PeekTok.getLocation();
  452     SourceLocation Start = PeekTok.getLocation();
  465     SourceLocation Start = PeekTok.getLocation();
  578     SourceLocation OpLoc = PeekTok.getLocation();
  844   SourceLocation ExprStartLoc = SourceMgr.getExpansionLoc(Tok.getLocation());
tools/clang/lib/Lex/PPLexerChange.cpp
   70                                    SourceLocation Loc) {
   82     SourceLocation FileStart = SourceMgr.getLocForStartOfFile(FID);
  127 void Preprocessor::EnterMacro(Token &Tok, SourceLocation ILEnd,
  269   SourceLocation StartLoc =
  644 void Preprocessor::EnterSubmodule(Module *M, SourceLocation ImportLoc,
  731   SourceLocation ImportLoc = Info.ImportLoc;
tools/clang/lib/Lex/PPMacroExpansion.cpp
  489   SourceLocation ExpansionEnd = Identifier.getLocation();
  517   SourceLocation ExpandLoc = Identifier.getLocation();
  592     SourceLocation Loc =
  726           SourceLocation Loc = PP.getLocForEndOfToken((I - 1)->getLocation());
  755                                                    SourceLocation &MacroEnd) {
  775   SourceLocation TooManyArgsLoc;
  786     SourceLocation ArgStartLoc = Tok.getLocation();
  994     SourceLocation EndLoc = Tok.getLocation();
 1061 static void ComputeDATE_TIME(SourceLocation &DATELoc, SourceLocation &TIMELoc,
 1061 static void ComputeDATE_TIME(SourceLocation &DATELoc, SourceLocation &TIMELoc,
 1147   SourceLocation LParenLoc = Tok.getLocation();
 1192   SourceLocation FilenameLoc = Tok.getLocation();
 1293   SourceLocation LParenLoc = Tok.getLocation();
 1469     SourceLocation Loc = Tok.getLocation();
 1495       SourceLocation NextLoc = PLoc.getIncludeLoc();
 1724         SourceLocation StrStartLoc = Tok.getLocation();
 1766     SourceLocation Loc = Tok.getLocation();
 1781     SourceLocation LParenLoc = Tok.getLocation();
tools/clang/lib/Lex/Pragma.cpp
  206   SourceLocation PragmaLoc = Tok.getLocation();
  256   SourceLocation RParenLoc = Tok.getLocation();
  317   SourceLocation TokLoc = TmpTok.getLocation();
  341   SourceLocation PragmaLoc = Tok.getLocation();
  625   SourceLocation MessageLoc = PopMacroTok.getLocation();
  746     std::pair<IdentifierInfo *, SourceLocation> &ModuleNameComponent,
  767     llvm::SmallVectorImpl<std::pair<IdentifierInfo *, SourceLocation>>
  770     std::pair<IdentifierInfo*, SourceLocation> NameComponent;
  782   SourceLocation Loc = Tok.getLocation();
  784   std::pair<IdentifierInfo *, SourceLocation> ModuleNameLoc;
 1091       llvm::SmallVector<std::pair<IdentifierInfo *, SourceLocation>, 8>
 1134     SourceLocation NameLoc = Tok.getLocation();
 1169     SourceLocation DiagLoc = DiagToken.getLocation();
 1205     SourceLocation StringLoc = Tok.getLocation();
 1264     SourceLocation DiagLoc = Tok.getLocation();
 1386     SourceLocation DiagLoc = Tok.getLocation();
 1488     SourceLocation MessageLoc = Tok.getLocation();
 1544     SourceLocation ImportLoc = Tok.getLocation();
 1547     llvm::SmallVector<std::pair<IdentifierInfo *, SourceLocation>, 8>
 1581     SourceLocation BeginLoc = Tok.getLocation();
 1584     llvm::SmallVector<std::pair<IdentifierInfo *, SourceLocation>, 8>
 1641     SourceLocation Loc = Tok.getLocation();
 1671     SourceLocation Loc = Tok.getLocation();
 1674     llvm::SmallVector<std::pair<IdentifierInfo *, SourceLocation>, 8>
 1717     SourceLocation Loc = NameTok.getLocation();
 1740     SourceLocation BeginLoc = PP.getPragmaARCCFCodeAuditedInfo().second;
 1743     SourceLocation NewLoc;
 1772     SourceLocation Loc = NameTok.getLocation();
 1795     SourceLocation BeginLoc = PP.getPragmaAssumeNonNullLoc();
 1798     SourceLocation NewLoc;
tools/clang/lib/Lex/PreprocessingRecord.cpp
   83   SourceLocation Loc = PPE->getSourceRange().getBegin();
  187     SourceLocation LHS = getLoc(L);
  188     SourceLocation RHS = getLoc(R);
  192   bool operator()(PreprocessedEntity *L, SourceLocation RHS) const {
  193     SourceLocation LHS = getLoc(L);
  197   bool operator()(SourceLocation LHS, PreprocessedEntity *R) const {
  198     SourceLocation RHS = getLoc(R);
  202   SourceLocation getLoc(PreprocessedEntity *PPE) const {
  211                                                      SourceLocation Loc) const {
  242 PreprocessingRecord::findEndLocalPreprocessedEntity(SourceLocation Loc) const {
  254   SourceLocation BeginLoc = Entity->getSourceRange().getBegin();
  406 void PreprocessingRecord::Ifdef(SourceLocation Loc, const Token &MacroNameTok,
  414 void PreprocessingRecord::Ifndef(SourceLocation Loc, const Token &MacroNameTok,
  432                                              SourceLocation EndifLoc) {
  461     SourceLocation HashLoc,
  494   SourceLocation EndLoc;
tools/clang/lib/Lex/Preprocessor.cpp
  254 void Preprocessor::DumpLocation(SourceLocation Loc) const {
  351                                     SourceLocation Loc,
  353   SourceLocation BestLocation;
  365     SourceLocation Location = Def.getLocation();
  483                                 SourceLocation ExpansionLocStart,
  484                                 SourceLocation ExpansionLocEnd) {
  488   SourceLocation Loc = ScratchBuf->getToken(Str.data(), Str.size(), DestPtr);
  502 SourceLocation Preprocessor::SplitToken(SourceLocation Loc, unsigned Length) {
  502 SourceLocation Preprocessor::SplitToken(SourceLocation Loc, unsigned Length) {
  504   SourceLocation SpellingLoc = SM.getSpellingLoc(Loc);
  513   SourceLocation Spelling =
  990     SourceLocation Start = FilenameTok.getLocation();
  991     SourceLocation End;
 1163     SourceLocation SemiLoc = Suffix.back().getLocation();
 1237   SourceLocation SemiLoc = Result.getLocation();
 1260     SourceLocation FirstPathLoc = ModuleImportPath[0].second;
 1285 void Preprocessor::makeModuleVisible(Module *M, SourceLocation Loc) {
tools/clang/lib/Lex/ScratchBuffer.cpp
   33 SourceLocation ScratchBuffer::getToken(const char *Buf, unsigned Len,
tools/clang/lib/Lex/TokenConcatenation.cpp
  172   SourceLocation PrevSpellLoc = SM.getSpellingLoc(PrevTok.getLocation());
  173   SourceLocation SpellLoc = SM.getSpellingLoc(Tok.getLocation());
tools/clang/lib/Lex/TokenLexer.cpp
   38 void TokenLexer::Init(Token &Tok, SourceLocation ELEnd, MacroInfo *MI,
  189     const SourceLocation VAOPTClosingParenLoc) {
  222   const SourceLocation ExpansionLocStartWithinMacro =
  224   const SourceLocation ExpansionLocEndWithinMacro =
  381       SourceLocation ExpansionLocStart =
  383       SourceLocation ExpansionLocEnd =
  676     SourceLocation instLoc;
  751   SourceLocation StartLoc = LHSTok.getLocation();
  752   SourceLocation PasteOpLoc;
  801     SourceLocation ResultTokLoc = ResultTokTmp.getLocation();
  853         SourceLocation Loc =
  893   SourceLocation EndLoc = TokenStream[CurIdx - 1].getLocation();
  946 void TokenLexer::HandleMicrosoftCommentPaste(Token &Tok, SourceLocation OpLoc) {
  964 SourceLocation
  965 TokenLexer::getExpansionLocForMacroDefLoc(SourceLocation loc) const {
  989                                             SourceLocation InstLoc,
  994   SourceLocation FirstLoc = begin_tokens->getLocation();
  995   SourceLocation CurLoc = FirstLoc;
 1009     SourceLocation NextLoc = NextTok->getLocation();
 1036   SourceLocation Expansion =
 1054 void TokenLexer::updateLocForMacroArgTokens(SourceLocation ArgIdSpellLoc,
 1059   SourceLocation InstLoc =
tools/clang/lib/Parse/ParseCXXInlineMethods.cpp
   27     SourceLocation PureSpecLoc) {
   64     SourceLocation KWLoc;
   65     SourceLocation KWEndLoc = Tok.getEndLoc().getLocWithOffset(-1);
  333       SourceLocation EqualLoc = ConsumeToken();
  625   SourceLocation EqualLoc;
  638       SourceLocation EndLoc = PP.getLocForEndOfToken(PrevTokLocation);
  789       SourceLocation OpenLoc = ConsumeToken();
  866     SourceLocation OpenLoc = Tok.getLocation();
tools/clang/lib/Parse/ParseDecl.cpp
   89 static bool FindLocsWithCommonFileID(Preprocessor &PP, SourceLocation StartLoc,
   90                                      SourceLocation EndLoc) {
  147                                 SourceLocation *endLoc,
  153     SourceLocation AttrTokLoc = ConsumeToken();
  179       SourceLocation AttrNameLoc = ConsumeToken();
  219     SourceLocation Loc = Tok.getLocation();
  302                                        SourceLocation AttrNameLoc,
  304                                        SourceLocation *EndLoc,
  306                                        SourceLocation ScopeLoc,
  331     IdentifierInfo *AttrName, SourceLocation AttrNameLoc,
  332     ParsedAttributes &Attrs, SourceLocation *EndLoc, IdentifierInfo *ScopeName,
  333     SourceLocation ScopeLoc, ParsedAttr::Syntax Syntax) {
  408   SourceLocation RParen = Tok.getLocation();
  410     SourceLocation AttrLoc = ScopeLoc.isValid() ? ScopeLoc : AttrNameLoc;
  430                                    SourceLocation AttrNameLoc,
  432                                    SourceLocation *EndLoc,
  434                                    SourceLocation ScopeLoc,
  485     IdentifierInfo *AttrName, SourceLocation AttrNameLoc,
  486     ParsedAttributes &Attrs, SourceLocation *EndLoc, IdentifierInfo *ScopeName,
  487     SourceLocation ScopeLoc, ParsedAttr::Syntax Syntax) {
  518                                         SourceLocation AttrNameLoc,
  530   SourceLocation OpenParenLoc = Tok.getLocation();
  566       SourceLocation KindLoc = Tok.getLocation();
  666                                      SourceLocation *End) {
  695       SourceLocation AttrNameLoc;
  747       SourceLocation AttrNameLoc = ConsumeToken();
  759   SourceLocation StartLoc = Tok.getLocation();
  760   SourceLocation EndLoc = SkipExtendedMicrosoftTypeAttributes();
  768 SourceLocation Parser::SkipExtendedMicrosoftTypeAttributes() {
  769   SourceLocation EndLoc;
  798     SourceLocation AttrNameLoc = ConsumeToken();
  808     SourceLocation AttrNameLoc = ConsumeToken();
  816   SourceLocation AttrNameLoc = Tok.getLocation();
  829       SourceLocation AttrNameLoc = ConsumeToken();
  992                                         SourceLocation AvailabilityLoc,
  994                                         SourceLocation *endLoc,
  996                                         SourceLocation ScopeLoc,
 1049   SourceLocation UnavailableLoc, StrictLoc;
 1057     SourceLocation KeywordLoc = ConsumeToken();
 1227     IdentifierInfo &ExternalSourceSymbol, SourceLocation Loc,
 1228     ParsedAttributes &Attrs, SourceLocation *EndLoc, IdentifierInfo *ScopeName,
 1229     SourceLocation ScopeLoc, ParsedAttr::Syntax Syntax) {
 1256     SourceLocation KeywordLoc = Tok.getLocation();
 1338                                 SourceLocation ObjCBridgeRelatedLoc,
 1340                                 SourceLocation *endLoc,
 1342                                 SourceLocation ScopeLoc,
 1495   SourceLocation endLoc;
 1561                                               SourceLocation AttrNameLoc,
 1563                                               SourceLocation *EndLoc,
 1565                                               SourceLocation ScopeLoc,
 1644     SourceLocation BeginLoc = ConsumeBracket();
 1648     SourceLocation EndLoc = ConsumeBracket();
 1661                                              SourceLocation CorrectLocation) {
 1666   SourceLocation Loc = Tok.getLocation();
 1676     const SourceRange &Range, const SourceLocation CorrectLocation) {
 1745 Parser::ParseDeclaration(DeclaratorContext Context, SourceLocation &DeclEnd,
 1747                          SourceLocation *DeclSpecStart) {
 1764       SourceLocation InlineLoc = ConsumeToken();
 1812     DeclaratorContext Context, SourceLocation &DeclEnd,
 1814     SourceLocation *DeclSpecStart) {
 2005                                               SourceLocation *DeclEnd,
 2028       SourceLocation Loc = ConsumeToken();
 2137   SourceLocation CommaLoc;
 2199     SourceLocation Loc;
 2315         SourceLocation LAngleLoc =
 2339     SourceLocation EqualLoc = ConsumeToken();
 2564   SourceLocation Loc = Tok.getLocation();
 2773     SourceLocation LAngle, RAngle;
 2818 ExprResult Parser::ParseAlignArgument(SourceLocation Start,
 2819                                       SourceLocation &EllipsisLoc) {
 2822     SourceLocation TypeLoc = Tok.getLocation();
 2845                                      SourceLocation *EndLoc) {
 2850   SourceLocation KWLoc = ConsumeToken();
 2856   SourceLocation EllipsisLoc;
 3048     SourceLocation ConsumedEnd;
 3062     SourceLocation Loc = Tok.getLocation();
 3412         SourceLocation NewEndLoc;
 3465       SourceLocation AttrNameLoc = Tok.getLocation();
 3605       SourceLocation ExplicitLoc = Loc;
 3606       SourceLocation CloseParenLoc;
 3973       SourceLocation StartLoc = Tok.getLocation();
 3974       SourceLocation EndLoc;
 4074   SourceLocation CommaLoc;
 4125 void Parser::ParseStructUnionBody(SourceLocation RecordLoc,
 4153       SourceLocation DeclEnd;
 4277 void Parser::ParseEnumSpecifier(SourceLocation StartLoc, DeclSpec &DS,
 4293   SourceLocation ScopedEnumKWLoc;
 4363   SourceLocation NameLoc;
 4637 void Parser::ParseEnumBody(SourceLocation StartLoc, Decl *EnumDecl) {
 4666     SourceLocation IdentLoc = ConsumeToken();
 4681     SourceLocation EqualLoc;
 4704       SourceLocation Loc = getEndOfPreviousToken();
 4712     SourceLocation CommaLoc;
 5311   SourceLocation EndLoc;
 5317     SourceLocation Loc = Tok.getLocation();
 5550       SourceLocation Loc = ConsumeToken();
 5589   SourceLocation Loc = ConsumeToken();  // Eat the *, ^, & or &&.
 5681 static SourceLocation getMissingDeclaratorIdLoc(Declarator &D,
 5682                                                 SourceLocation Loc) {
 5793       SourceLocation EllipsisLoc = ConsumeToken();
 5975         SourceLocation Loc = D.getCXXScopeSpec().getEndLoc();
 6059           SourceLocation EndLoc = getEndOfPreviousToken();
 6173     SourceLocation EllipsisLoc = D.getEllipsisLoc();
 6245   SourceLocation EllipsisLoc;
 6249   SourceLocation RefQualifierLoc;
 6262   SourceLocation StartLoc, LocalEndLoc, EndLoc;
 6263   SourceLocation LParenLoc, RParenLoc;
 6438                                SourceLocation &RefQualifierLoc) {
 6568        SourceLocation &EllipsisLoc) {
 6585     SourceLocation DSStart = Tok.getLocation();
 6643         SourceLocation EqualLoc = Tok.getLocation();
 6652           SourceLocation ArgStartLoc = NextToken().getLocation();
 6704         SourceLocation ParmEllipsis = ParmDeclarator.getEllipsisLoc();
 6778   SourceLocation StaticLoc;
 6855   SourceLocation StartBracketLoc = Tok.getLocation();
 6868   SourceLocation SuggestParenLoc = Tok.getLocation();
 6899     SourceLocation EndLoc = PP.getLocForEndOfToken(D.getEndLoc());
 6915   SourceLocation EndBracketLoc = TempDeclarator.getEndLoc();
 6919   SourceLocation EndLoc = PP.getLocForEndOfToken(D.getEndLoc());
 6946   SourceLocation StartLoc = ConsumeToken();
 7013   SourceLocation StartLoc = ConsumeToken();
 7074 bool Parser::TryAltiVecTokenOutOfLine(DeclSpec &DS, SourceLocation Loc,
tools/clang/lib/Parse/ParseDeclCXX.cpp
   59                                               SourceLocation &DeclEnd,
   60                                               SourceLocation InlineLoc) {
   62   SourceLocation NamespaceLoc = ConsumeToken();  // eat the 'namespace'.
   71   SourceLocation IdentLoc;
   74   SourceLocation FirstNestedInlineLoc;
   77   SourceLocation attrLoc;
  238                                  unsigned int index, SourceLocation &InlineLoc,
  277 Decl *Parser::ParseNamespaceAlias(SourceLocation NamespaceLoc,
  278                                   SourceLocation AliasLoc,
  280                                   SourceLocation &DeclEnd) {
  315   SourceLocation IdentLoc = ConsumeToken();
  418   SourceLocation ExportLoc = ConsumeToken();
  463                                          SourceLocation &DeclEnd,
  469   SourceLocation UsingLoc = ConsumeToken();
  479     SourceLocation TemplateLoc = ConsumeToken();
  517                                   SourceLocation UsingLoc,
  518                                   SourceLocation &DeclEnd,
  523   SourceLocation NamespcLoc = ConsumeToken();
  540   SourceLocation IdentLoc = SourceLocation();
  629     SourceLocation IdLoc = ConsumeToken();
  671                               SourceLocation UsingLoc, SourceLocation &DeclEnd,
  671                               SourceLocation UsingLoc, SourceLocation &DeclEnd,
  778     const ParsedTemplateInfo &TemplateInfo, SourceLocation UsingLoc,
  779     UsingDeclarator &D, SourceLocation &DeclEnd, AccessSpecifier AS,
  863 Decl *Parser::ParseStaticAssertDeclaration(SourceLocation &DeclEnd){
  872   SourceLocation StaticAssertLoc = ConsumeToken();
  933 SourceLocation Parser::ParseDecltypeSpecifier(DeclSpec &DS) {
  938   SourceLocation StartLoc = Tok.getLocation();
  939   SourceLocation EndLoc;
 1040                                                SourceLocation StartLoc,
 1041                                                SourceLocation EndLoc) {
 1062   SourceLocation StartLoc = ConsumeToken();
 1107 TypeResult Parser::ParseBaseTypeSpecifier(SourceLocation &BaseLoc,
 1108                                           SourceLocation &EndLocation) {
 1166   SourceLocation IdLoc = ConsumeToken();
 1181       SourceLocation LAngleLoc, RAngleLoc;
 1246     SourceLocation AttrNameLoc = ConsumeToken();
 1392                                  SourceLocation StartLoc, DeclSpec &DS,
 1448   SourceLocation AttrFixitLoc = Tok.getLocation();
 1597   SourceLocation NameLoc;
 1608       SourceLocation LAngleLoc, RAngleLoc;
 1859           SourceLocation LAngleLoc =
 2076   SourceLocation StartLoc = Tok.getLocation();
 2097     SourceLocation VirtualLoc = ConsumeToken();
 2119   SourceLocation EndLocation;
 2120   SourceLocation BaseLoc;
 2128   SourceLocation EllipsisLoc;
 2246                                                 SourceLocation FriendLoc) {
 2327     SourceLocation Loc;
 2405     SourceLocation RefQualifierLoc;
 2509       SourceLocation TemplateKWLoc;
 2537     SourceLocation DeclEnd;
 2546     SourceLocation DeclEnd;
 2576     SourceLocation UsingLoc = ConsumeToken();
 2580       SourceLocation TemplateLoc = ConsumeToken();
 2590     SourceLocation DeclEnd;
 2646   SourceLocation EqualLoc;
 2647   SourceLocation PureSpecLoc;
 2894     SourceLocation CommaLoc;
 2957                                              SourceLocation &EqualLoc) {
 2996 void Parser::SkipCXXMemberSpecification(SourceLocation RecordLoc,
 2997                                         SourceLocation AttrFixitLoc,
 3107     SourceLocation ASLoc = Tok.getLocation();
 3113     SourceLocation EndLoc;
 3160 void Parser::ParseCXXMemberSpecification(SourceLocation RecordLoc,
 3161                                          SourceLocation AttrFixitLoc,
 3215   SourceLocation FinalLoc;
 3268       SourceLocation BraceLoc = PP.getLocForEndOfToken(PrevTokLocation);
 3357     SourceLocation SavedPrevTokLocation = PrevTokLocation;
 3430   SourceLocation ColonLoc = ConsumeToken();
 3456       SourceLocation Loc = PP.getLocForEndOfToken(PrevTokLocation);
 3493   SourceLocation IdLoc = Tok.getLocation();
 3538     SourceLocation EllipsisLoc;
 3571     SourceLocation EllipsisLoc;
 3662   SourceLocation KeywordLoc = ConsumeToken();
 3742     SourceLocation EllipsisLoc = ConsumeToken();
 3760       SourceLocation Ellipsis = ConsumeToken();
 3862 IdentifierInfo *Parser::TryParseCXX11AttributeIdentifier(SourceLocation &Loc) {
 3880       SourceLocation ExpansionLoc =
 3910     SourceLocation SpellingLoc =
 3955                                      SourceLocation AttrNameLoc,
 3957                                      SourceLocation *EndLoc,
 3959                                      SourceLocation ScopeLoc) {
 3961   SourceLocation LParenLoc = Tok.getLocation();
 4044                                           SourceLocation *endLoc) {
 4059   SourceLocation CommonScopeLoc;
 4076   llvm::SmallDenseMap<IdentifierInfo*, SourceLocation, 4> SeenAttrs;
 4083     SourceLocation ScopeLoc, AttrLoc;
 4152                                   SourceLocation *endLoc) {
 4155   SourceLocation StartLoc = Tok.getLocation(), Loc;
 4168   SourceLocation StartLoc = Tok.getLocation();
 4169   SourceLocation EndLoc = SkipCXX11Attributes();
 4178 SourceLocation Parser::SkipCXX11Attributes() {
 4179   SourceLocation EndLoc;
 4209   SourceLocation UuidLoc = Tok.getLocation();
 4241     SourceLocation StartLoc = Tok.getLocation();
 4297                                       SourceLocation *endLoc) {
 4369       SourceLocation ASLoc = Tok.getLocation();
tools/clang/lib/Parse/ParseExpr.cpp
  133 Parser::ParseExpressionWithLeadingAt(SourceLocation AtLoc) {
  142 Parser::ParseExpressionWithLeadingExtension(SourceLocation ExtLoc) {
  188 Parser::ParseAssignmentExprWithObjCMessageExprStart(SourceLocation LBracLoc,
  189                                                     SourceLocation SuperLoc,
  220 ExprResult Parser::ParseCaseExpression(SourceLocation CaseLoc) {
  271   SourceLocation ColonLoc;
  337         SourceLocation BraceLoc = Tok.getLocation();
  372         SourceLocation FILoc = Tok.getLocation();
  791     SourceLocation RParenLoc;
  971     SourceLocation ILoc = ConsumeToken();
  993       SourceLocation PropertyLoc = ConsumeToken();
 1058     SourceLocation TemplateKWLoc;
 1160     SourceLocation SavedLoc = ConsumeToken();
 1175     SourceLocation SavedLoc = ConsumeToken();
 1184     SourceLocation CoawaitLoc = ConsumeToken();
 1194     SourceLocation SavedLoc = ConsumeToken();
 1214     SourceLocation AmpAmpLoc = ConsumeToken();
 1394     SourceLocation CCLoc = ConsumeToken();
 1413     SourceLocation KeyLoc = ConsumeToken();
 1447     SourceLocation AtLoc = ConsumeToken();
 1529   SourceLocation Loc;
 1581       SourceLocation ColonLoc;
 1602       SourceLocation RLoc = Tok.getLocation();
 1639         SourceLocation OpenLoc = ConsumeToken();
 1646         SourceLocation CloseLoc;
 1744       SourceLocation OpLoc = ConsumeToken();  // Eat the "." or "->" token.
 1819       SourceLocation TemplateKWLoc;
 1831         SourceLocation Loc = ConsumeToken();
 1914         SourceLocation LParenLoc = PP.getLocForEndOfToken(OpTok.getLocation());
 1915         SourceLocation RParenLoc = PP.getLocForEndOfToken(PrevTokLocation);
 1939     SourceLocation LParenLoc = Tok.getLocation(), RParenLoc;
 1990     SourceLocation EllipsisLoc = ConsumeToken();
 1991     SourceLocation LParenLoc, RParenLoc;
 1993     SourceLocation NameLoc;
 2105   SourceLocation StartLoc = ConsumeToken();   // Eat the builtin identifier.
 2141     SourceLocation TypeLoc = Tok.getLocation();
 2377                              SourceLocation &RParenLoc) {
 2383   SourceLocation OpenLoc = T.getOpenLocation();
 2408       SourceLocation BridgeKeywordLoc = ConsumeToken();
 2450     SourceLocation BridgeKeywordLoc = ConsumeToken();
 2692                                        SourceLocation LParenLoc,
 2693                                        SourceLocation RParenLoc) {
 2747   SourceLocation KeyLoc = ConsumeToken();
 2771   SourceLocation DefaultLoc;
 2840   SourceLocation FirstOpLoc;
 2848   SourceLocation EllipsisLoc = ConsumeToken();
 2900                                  SmallVectorImpl<SourceLocation> &CommaLocs,
 2952                                   SmallVectorImpl<SourceLocation> &CommaLocs) {
 2977 void Parser::ParseBlockId(SourceLocation CaretLoc) {
 3010   SourceLocation CaretLoc = ConsumeToken();
 3040     SourceLocation Tmp = ParamInfo.getSourceRange().getEnd();
 3059     SourceLocation NoLoc;
 3145     SourceLocation InsertWildcardLoc = AvailSpecs.back().getEndLoc();
 3197 ExprResult Parser::ParseAvailabilityCheckExpr(SourceLocation BeginLoc) {
tools/clang/lib/Parse/ParseExprCXX.cpp
   44   SourceLocation FirstLoc = SM.getSpellingLoc(First.getLocation());
   45   SourceLocation FirstEnd = FirstLoc.getLocWithOffset(First.getLength());
  202     SourceLocation SuperLoc = ConsumeToken();
  214     SourceLocation DeclLoc = Tok.getLocation();
  215     SourceLocation EndLoc  = ParseDecltypeSpecifier(DS);
  217     SourceLocation CCLoc;
  277       SourceLocation TemplateKWLoc = ConsumeToken();
  352       SourceLocation CCLoc = ConsumeToken();
  369         SourceLocation StartLoc
  448       SourceLocation IdLoc = ConsumeToken();
  452       SourceLocation CCLoc = ConsumeToken();
  564     SourceLocation Loc = ConsumeAnnotationToken();
  571     SourceLocation Loc = ConsumeAnnotationToken();
  587     SourceLocation Loc = ConsumeAnnotationToken();
  593     SourceLocation TemplateKWLoc;
  906     SourceLocation Loc;
  908     SourceLocation EllipsisLocs[4];
  910     SourceLocation LocStart = Tok.getLocation();
 1018           SourceLocation StartLoc = Tok.getLocation();
 1053     SourceLocation EllipsisLoc;
 1059       SourceLocation *ExpectedEllipsisLoc =
 1068         for (SourceLocation Loc : EllipsisLocs) {
 1082           SourceLocation DiagLoc;
 1083           for (SourceLocation &Loc : EllipsisLocs) {
 1095             SourceLocation ExpectedLoc =
 1101           for (SourceLocation &Loc : EllipsisLocs) {
 1129     SourceLocation LocEnd = PrevTokLocation;
 1141                                            SourceLocation &MutableLoc,
 1142                                            SourceLocation &ConstexprLoc,
 1143                                            SourceLocation &ConstevalLoc,
 1144                                            SourceLocation &DeclEndLoc) {
 1188 addConstexprToLambdaDeclSpecifier(Parser &P, SourceLocation ConstexprLoc,
 1203                                               SourceLocation ConstevalLoc,
 1219   SourceLocation LambdaBeginLoc = Intro.Range.getBegin();
 1237   SourceLocation DeclLoc = Tok.getLocation();
 1266     SourceLocation LAngleLoc, RAngleLoc;
 1292     SourceLocation LParenLoc = T.getOpenLocation();
 1296     SourceLocation EllipsisLoc;
 1314     SourceLocation RParenLoc = T.getCloseLocation();
 1315     SourceLocation DeclEndLoc = RParenLoc;
 1327     SourceLocation MutableLoc;
 1328     SourceLocation ConstexprLoc;
 1329     SourceLocation ConstevalLoc;
 1355     SourceLocation FunLocalRangeEnd = DeclEndLoc;
 1371     SourceLocation NoLoc;
 1404     SourceLocation DeclEndLoc = DeclLoc;
 1411     SourceLocation MutableLoc;
 1431     SourceLocation NoLoc;
 1500   SourceLocation OpLoc = ConsumeToken();
 1501   SourceLocation LAngleBracketLoc = Tok.getLocation();
 1522   SourceLocation RAngleBracketLoc = Tok.getLocation();
 1556   SourceLocation OpLoc = ConsumeToken();
 1557   SourceLocation LParenLoc, RParenLoc;
 1623   SourceLocation OpLoc = ConsumeToken();
 1679 Parser::ParseCXXPseudoDestructor(Expr *Base, SourceLocation OpLoc,
 1692   SourceLocation CCLoc;
 1712   SourceLocation TildeLoc = ConsumeToken();
 1731   SourceLocation NameLoc = ConsumeToken();
 1764   SourceLocation ThrowLoc = ConsumeToken();           // Eat the throw token.
 1792   SourceLocation Loc = ConsumeToken();
 1807   SourceLocation ThisLoc = ConsumeToken();
 1911                                                 SourceLocation Loc,
 1942       SourceLocation SemiLoc = Tok.getLocation();
 1970     SourceLocation DeclStart = Tok.getLocation(), DeclEnd;
 1980     SourceLocation DeclStart = Tok.getLocation(), DeclEnd;
 2003     SourceLocation Loc;
 2039     SourceLocation LParen = ConsumeParen(), RParen = LParen;
 2088   SourceLocation Loc = Tok.getLocation();
 2245                                           SourceLocation TemplateKWLoc,
 2247                                           SourceLocation NameLoc,
 2353   SourceLocation LAngleLoc, RAngleLoc;
 2446   SourceLocation KeywordLoc = ConsumeToken();
 2450   SourceLocation SymbolLocations[3];
 2540     SourceLocation DiagLoc;
 2546     SmallVector<SourceLocation, 4> TokLocs;
 2566     SourceLocation SuffixLoc;
 2676                                 SourceLocation *TemplateKWLoc,
 2689       SourceLocation TemplateLoc = ConsumeToken();
 2701     SourceLocation IdLoc = ConsumeToken();
 2783     SourceLocation TemplateLoc = TemplateId->TemplateKWLoc;
 2833     SourceLocation TildeLoc = ConsumeToken();
 2837       SourceLocation EndLoc = ParseDecltypeSpecifier(DS);
 2886     SourceLocation ClassNameLoc = ConsumeToken();
 2941 Parser::ParseCXXNewExpression(bool UseGlobal, SourceLocation Start) {
 2949   SourceLocation PlacementLParen, PlacementRParen;
 3017     SourceLocation ConstructorLParen, ConstructorRParen;
 3149 Parser::ParseCXXDeleteExpression(bool UseGlobal, SourceLocation Start) {
 3172       SourceLocation LSquareLoc = Tok.getLocation();
 3173       SourceLocation RSquareLoc = NextToken().getLocation();
 3178       SourceLocation RBraceLoc;
 3284   SourceLocation Loc = ConsumeToken();
 3315   SourceLocation EndLoc = Parens.getCloseLocation();
 3341   SourceLocation Loc = ConsumeToken();
 3384   SourceLocation Loc = ConsumeToken();
 3555   SourceLocation KWLoc = ConsumeToken();
tools/clang/lib/Parse/ParseInit.cpp
  103 static void CheckArrayDesignatorSyntax(Parser &P, SourceLocation Loc,
  170     SourceLocation NameLoc = ConsumeToken(); // Eat the identifier.
  173     SourceLocation ColonLoc = ConsumeToken();
  194       SourceLocation DotLoc = ConsumeToken();
  231     SourceLocation StartLoc = T.getOpenLocation();
  274       SourceLocation IILoc = Tok.getLocation();
  297           SourceLocation NewEndLoc;
  355       SourceLocation EllipsisLoc = ConsumeToken();
  380     SourceLocation EqualLoc = ConsumeToken();
  428   SourceLocation LBraceLoc = T.getOpenLocation();
tools/clang/lib/Parse/ParseObjc.cpp
   49   SourceLocation AtLoc = ConsumeToken(); // the "@"
  130 Parser::ParseObjCAtClassDeclaration(SourceLocation atLoc) {
  133   SmallVector<SourceLocation, 8> ClassLocs;
  165 void Parser::CheckNestedObjCContexts(SourceLocation AtLoc)
  212 Decl *Parser::ParseObjCAtInterfaceDeclaration(SourceLocation AtLoc,
  233   SourceLocation nameLoc = ConsumeToken();
  238   SourceLocation LAngleLoc, EndProtoLoc;
  252     SourceLocation categoryLoc;
  278     SmallVector<SourceLocation, 8> ProtocolLocs;
  299   SourceLocation superClassLoc;
  300   SourceLocation typeArgsLAngleLoc;
  302   SourceLocation typeArgsRAngleLoc;
  304   SmallVector<SourceLocation, 4> protocolLocs;
  374                                                SourceLocation nullabilityLoc,
  421     ObjCTypeParamListScope &Scope, SourceLocation &lAngleLoc,
  423     SourceLocation &rAngleLoc, bool mayBeProtocolList) {
  451     SourceLocation varianceLoc;
  487     SourceLocation paramLoc = ConsumeToken();
  490     SourceLocation colonLoc;
  571   SourceLocation lAngleLoc;
  573   SourceLocation rAngleLoc;
  658         SourceLocation DeclEnd;
  669     SourceLocation AtLoc = ConsumeToken(); // the "@"
  721       SourceLocation LParenLoc;
  802                                                  SourceLocation nullabilityLoc){
  859     SourceLocation AttrName = ConsumeToken(); // consume last attribute name
  901       SourceLocation SelLoc;
  987   SourceLocation mLoc = ConsumeToken();
 1003 IdentifierInfo *Parser::ParseObjCSelectorPiece(SourceLocation &SelectorLoc) {
 1250   SourceLocation TypeStartLoc = Tok.getLocation();
 1327 Decl *Parser::ParseObjCMethodDecl(SourceLocation mLoc,
 1361   SourceLocation selLoc;
 1390   SmallVector<SourceLocation, 12> KeyLocs;
 1457       SourceLocation ColonLoc = Tok.getLocation();
 1519                             SmallVectorImpl<SourceLocation> &ProtocolLocs,
 1521                             SourceLocation &LAngleLoc, SourceLocation &EndLoc,
 1521                             SourceLocation &LAngleLoc, SourceLocation &EndLoc,
 1560 TypeResult Parser::parseObjCProtocolQualifierType(SourceLocation &rAngleLoc) {
 1564   SourceLocation lAngleLoc;
 1566   SmallVector<SourceLocation, 8> protocolLocs;
 1590        SourceLocation &typeArgsLAngleLoc,
 1592        SourceLocation &typeArgsRAngleLoc,
 1593        SourceLocation &protocolLAngleLoc,
 1595        SmallVectorImpl<SourceLocation> &protocolLocs,
 1596        SourceLocation &protocolRAngleLoc,
 1600   SourceLocation lAngleLoc = ConsumeToken();
 1606   SmallVectorImpl<SourceLocation> &identifierLocs = protocolLocs;
 1647     SourceLocation rAngleLoc;
 1676   SourceLocation foundProtocolSrcLoc, foundValidTypeSrcLoc;
 1678   SmallVector<SourceLocation, 2> unknownTypeArgsLoc;
 1722     SourceLocation ellipsisLoc;
 1753   SourceLocation rAngleLoc;
 1769        SourceLocation &typeArgsLAngleLoc,
 1771        SourceLocation &typeArgsRAngleLoc,
 1772        SourceLocation &protocolLAngleLoc,
 1774        SmallVectorImpl<SourceLocation> &protocolLocs,
 1775        SourceLocation &protocolRAngleLoc,
 1821              SourceLocation loc,
 1824              SourceLocation &endLoc) {
 1826   SourceLocation typeArgsLAngleLoc;
 1828   SourceLocation typeArgsRAngleLoc;
 1829   SourceLocation protocolLAngleLoc;
 1831   SmallVector<SourceLocation, 4> protocolLocs;
 1832   SourceLocation protocolRAngleLoc;
 1862 void Parser::HelperActionsForIvarDeclarations(Decl *interfaceDecl, SourceLocation atLoc,
 1902                                              SourceLocation atLoc) {
 1963       SourceLocation DeclEnd;
 2014 Parser::ParseObjCAtProtocolDeclaration(SourceLocation AtLoc,
 2032   SourceLocation nameLoc = ConsumeToken();
 2067   SourceLocation LAngleLoc, EndProtoLoc;
 2070   SmallVector<SourceLocation, 8> ProtocolLocs;
 2096 Parser::ParseObjCAtImplementationDeclaration(SourceLocation AtLoc,
 2116   SourceLocation nameLoc = ConsumeToken(); // consume class or category name
 2122     SourceLocation lAngleLoc, rAngleLoc;
 2124     SourceLocation diagLoc = Tok.getLocation();
 2139     SourceLocation categoryLoc, rparenLoc;
 2164       SourceLocation protocolLAngleLoc, protocolRAngleLoc;
 2166       SmallVector<SourceLocation, 4> protocolLocs;
 2178     SourceLocation superClassLoc;
 2195       SourceLocation protocolLAngleLoc, protocolRAngleLoc;
 2197       SmallVector<SourceLocation, 4> protocolLocs;
 2278 Decl *Parser::ParseObjCAtAliasDeclaration(SourceLocation atLoc) {
 2285   SourceLocation aliasLoc = ConsumeToken(); // consume alias-name
 2289   SourceLocation classLoc = ConsumeToken(); // consume class-name;
 2306 Decl *Parser::ParseObjCPropertySynthesize(SourceLocation atLoc) {
 2326     SourceLocation propertyLoc = ConsumeToken(); // consume property name
 2327     SourceLocation propertyIvarLoc;
 2360 Decl *Parser::ParseObjCPropertyDynamic(SourceLocation atLoc) {
 2374       SourceLocation AttrName = ConsumeToken(); // consume attribute name
 2402     SourceLocation propertyLoc = ConsumeToken(); // consume property name
 2420 StmtResult Parser::ParseObjCThrowStmt(SourceLocation atLoc) {
 2439 Parser::ParseObjCSynchronizedStmt(SourceLocation atLoc) {
 2498 StmtResult Parser::ParseObjCTryStmt(SourceLocation atLoc) {
 2523     SourceLocation AtCatchFinallyLoc = ConsumeToken();
 2544         SourceLocation RParenLoc;
 2618 Parser::ParseObjCAutoreleasePoolStmt(SourceLocation atLoc) {
 2725 StmtResult Parser::ParseObjCAtStatement(SourceLocation AtLoc,
 2766 ExprResult Parser::ParseObjCAtExpression(SourceLocation AtLoc) {
 2776     SourceLocation OpLoc = ConsumeToken();
 2860           SourceLocation kwLoc = Tok.getLocation();
 3012   SourceLocation LBracLoc = ConsumeBracket(); // consume '['
 3053     SourceLocation NameLoc = Tok.getLocation();
 3073         SourceLocation NewEndLoc;
 3145 Parser::ParseObjCMessageExpressionBody(SourceLocation LBracLoc,
 3146                                        SourceLocation SuperLoc,
 3166   SourceLocation Loc;
 3170   SmallVector<SourceLocation, 12> KeyLocs;
 3252       SourceLocation commaLoc = ConsumeToken(); // Eat the ','.
 3292   SourceLocation RBracLoc = ConsumeBracket(); // consume ']'
 3311 ExprResult Parser::ParseObjCStringLiteral(SourceLocation AtLoc) {
 3318   SmallVector<SourceLocation, 4> AtLocs;
 3345 ExprResult Parser::ParseObjCBooleanLiteral(SourceLocation AtLoc,
 3347   SourceLocation EndLoc = ConsumeToken();             // consume the keyword.
 3354 ExprResult Parser::ParseObjCCharacterLiteral(SourceLocation AtLoc) {
 3368 ExprResult Parser::ParseObjCNumericLiteral(SourceLocation AtLoc) {
 3381 Parser::ParseObjCBoxedExpr(SourceLocation AtLoc) {
 3396   SourceLocation LPLoc = T.getOpenLocation(), RPLoc = T.getCloseLocation();
 3402 ExprResult Parser::ParseObjCArrayLiteral(SourceLocation AtLoc) {
 3436   SourceLocation EndLoc = ConsumeBracket(); // location of ']'
 3445 ExprResult Parser::ParseObjCDictionaryLiteral(SourceLocation AtLoc) {
 3487     SourceLocation EllipsisLoc;
 3502   SourceLocation EndLoc = ConsumeBrace();
 3515 Parser::ParseObjCEncodeExpression(SourceLocation AtLoc) {
 3518   SourceLocation EncLoc = ConsumeToken();
 3540 Parser::ParseObjCProtocolExpression(SourceLocation AtLoc) {
 3541   SourceLocation ProtoLoc = ConsumeToken();
 3553   SourceLocation ProtoIdLoc = ConsumeToken();
 3564 ExprResult Parser::ParseObjCSelectorExpression(SourceLocation AtLoc) {
 3565   SourceLocation SelectorLoc = ConsumeToken();
 3571   SourceLocation sLoc;
 3612       SourceLocation Loc;
 3639   SourceLocation OrigLoc = Tok.getLocation();
tools/clang/lib/Parse/ParseOpenMP.cpp
  266   SmallVector<std::pair<QualType, SourceLocation>, 8> ReductionTypes;
  437     SourceLocation LParLoc = T.getOpenLocation();
  455       SourceLocation RLoc = Tok.getLocation();
  552   SourceLocation Loc = Tok.getLocation();
  715       SourceLocation RLoc;
  758                                    CachedTokens &Toks, SourceLocation Loc) {
  787   SourceLocation EndLoc = ConsumeAnnotationToken();
  809   SourceLocation RLoc;
  824     Parser &P, SourceLocation Loc, llvm::StringMap<SourceLocation> &UsedCtx,
  824     Parser &P, SourceLocation Loc, llvm::StringMap<SourceLocation> &UsedCtx,
  912     SourceLocation Loc,
  916   llvm::StringMap<SourceLocation> UsedCtxSets;
  956       llvm::StringMap<SourceLocation> UsedCtx;
  988                                            SourceLocation Loc) {
  998   SourceLocation RLoc;
 1080     SourceLocation Loc;
 1081     SourceLocation LOpen;
 1082     SourceLocation TypeLoc;
 1083     SourceLocation RLoc;
 1084     SimpleClauseData(unsigned Type, SourceLocation Loc, SourceLocation LOpen,
 1084     SimpleClauseData(unsigned Type, SourceLocation Loc, SourceLocation LOpen,
 1085                      SourceLocation TypeLoc, SourceLocation RLoc)
 1085                      SourceLocation TypeLoc, SourceLocation RLoc)
 1093   SourceLocation Loc = Tok.getLocation();
 1094   SourceLocation LOpen = P.ConsumeToken();
 1103   SourceLocation TypeLoc = Tok.getLocation();
 1109   SourceLocation RLoc = Tok.getLocation();
 1119   SmallVector<std::tuple<OMPDeclareTargetDeclAttr::MapTypeTy, SourceLocation,
 1124   SourceLocation DeviceTypeLoc;
 1188     SourceLocation Loc;
 1203                                                SourceLocation DTLoc) {
 1253   SourceLocation Loc = ConsumeAnnotationToken();
 1323     SourceLocation StartLoc = ConsumeToken();
 1432     SourceLocation DTLoc = ConsumeAnyToken();
 1589   SourceLocation Loc = ConsumeAnnotationToken(), EndLoc;
 2129                                          SourceLocation &RLoc,
 2135   SourceLocation ELoc = Tok.getLocation();
 2185   SourceLocation Loc = ConsumeToken();
 2186   SourceLocation LLoc = Tok.getLocation();
 2187   SourceLocation RLoc;
 2244   SourceLocation Loc = Tok.getLocation();
 2268   SourceLocation Loc = ConsumeToken();
 2269   SourceLocation DelimLoc;
 2278   SmallVector<SourceLocation, 4> KLoc;
 2378     SourceLocation ELoc = Tok.getLocation();
 2386   SourceLocation RLoc = Tok.getLocation();
 2432       SourceLocation OpLoc = P.ConsumeToken();
 2433       SourceLocation SymbolLocations[] = {OpLoc, OpLoc, SourceLocation()};
 2755     SourceLocation ELoc = ConsumeToken();
 2827   SourceLocation Loc = Tok.getLocation();
 2828   SourceLocation LOpen = ConsumeToken();
tools/clang/lib/Parse/ParsePragma.cpp
  499   SourceLocation UnusedLoc = ConsumeAnnotationToken();
  508   SourceLocation VisLoc = ConsumeAnnotationToken();
  524   SourceLocation PragmaLoc = Tok.getLocation();
  569   SourceLocation PragmaLoc = ConsumeAnnotationToken();
  577   SourceLocation PragmaLoc = ConsumeAnnotationToken();
  579   SourceLocation WeakNameLoc = Tok.getLocation();
  582   SourceLocation AliasNameLoc = Tok.getLocation();
  591   SourceLocation RedefLoc = ConsumeAnnotationToken();
  593   SourceLocation RedefNameLoc = Tok.getLocation();
  596   SourceLocation AliasNameLoc = Tok.getLocation();
  659   SourceLocation Loc = Tok.getLocation();
  689   SourceLocation NameLoc = Tok.getLocation();
  728   SourceLocation PragmaLoc = ConsumeAnnotationToken();
  738   SourceLocation PragmaLoc = ConsumeAnnotationToken();
  749   SourceLocation PragmaLocation = ConsumeAnnotationToken();
  775                                    SourceLocation PragmaLocation) {
  856                                    SourceLocation PragmaLocation) {
  940                                    SourceLocation PragmaLocation) {
 1090     SourceLocation StateLoc = Toks[0].getLocation();
 1184     SourceLocation SubRuleLoc) {
 1197     StringRef SubRuleName, SourceLocation SubRuleLoc) {
 1209     attr::ParsedSubjectMatchRuleSet &SubjectMatchRules, SourceLocation &AnyLoc,
 1210     SourceLocation &LastMatchRuleEndLoc) {
 1235     SourceLocation RuleLoc = ConsumeToken();
 1263       SourceLocation SubRuleLoc = ConsumeToken();
 1294     SourceLocation RuleEndLoc = Tok.getLocation();
 1346   SourceLocation Loc = PRef.getEndOfPreviousToken();
 1402   SourceLocation PragmaLoc = Tok.getLocation();
 1449     SourceLocation AttrNameLoc = ConsumeToken();
 1474         SourceLocation InsertStartLoc = Tok.getLocation();
 1498     SourceLocation Loc = Attrs[1].getLoc();
 1549   SourceLocation AnyLoc, LastMatchRuleEndLoc;
 1581   SourceLocation VisLoc = VisTok.getLocation();
 1616   SourceLocation EndLoc = Tok.getLocation();
 1642   SourceLocation PackLoc = PackTok.getLocation();
 1725   SourceLocation RParenLoc = Tok.getLocation();
 1762   SourceLocation EndLoc = Tok.getLocation();
 1890   SourceLocation EndLoc = Tok.getLocation();
 1927   SourceLocation UnusedLoc = UnusedTok.getLocation();
 1939   SourceLocation RParenLoc;
 2008   SourceLocation WeakLoc = WeakTok.getLocation();
 2069   SourceLocation RedefLoc = RedefToken.getLocation();
 2139   SourceLocation NameLoc = Tok.getLocation();
 2168   SourceLocation StateLoc = Tok.getLocation();
 2236   SourceLocation EodLoc = Tok.getLocation();
 2259   SourceLocation PointersToMembersLoc = Tok.getLocation();
 2328   SourceLocation EndLoc = Tok.getLocation();
 2356   SourceLocation VtorDispLoc = Tok.getLocation();
 2419   SourceLocation EndLoc = Tok.getLocation();
 2481   SourceLocation DetectMismatchLoc = Tok.getLocation();
 2537   SourceLocation CommentLoc = Tok.getLocation();
 3065   SourceLocation StartLoc = Tok.getLocation();
 3254     SourceLocation EndLoc = Tok.getLocation();
tools/clang/lib/Parse/ParseStmt.cpp
   31 StmtResult Parser::ParseStatement(SourceLocation *TrailingElseLoc,
   97                                     SourceLocation *TrailingElseLoc) {
  153     SourceLocation *TrailingElseLoc, ParsedAttributesWithRange &Attrs) {
  156   SourceLocation GNUAttributeLoc;
  163   SourceLocation AtLoc;
  213       SourceLocation DeclStart = Tok.getLocation(), DeclEnd;
  471   SourceLocation TryLoc = ConsumeToken();
  485     SourceLocation Loc = ConsumeToken();
  488     SourceLocation Loc = ConsumeToken();
  508 StmtResult Parser::ParseSEHExceptBlock(SourceLocation ExceptLoc) {
  560 StmtResult Parser::ParseSEHFinallyBlock(SourceLocation FinallyLoc) {
  586   SourceLocation LeaveLoc = ConsumeToken();  // eat the '__leave'.
  611   SourceLocation ColonLoc = ConsumeToken();
  698   SourceLocation ColonLoc;
  700     SourceLocation CaseLoc = MissingCase ? Expr.get()->getExprLoc() :
  730     SourceLocation DotDotDotLoc;
  751       SourceLocation ExpectedLoc = PP.getLocForEndOfToken(PrevTokLocation);
  791       SourceLocation AfterColonLoc = PP.getLocForEndOfToken(ColonLoc);
  822   SourceLocation DefaultLoc = ConsumeToken();  // eat the 'default'.
  824   SourceLocation ColonLoc;
  832     SourceLocation ExpectedLoc = PP.getLocForEndOfToken(PrevTokLocation);
  846     SourceLocation AfterColonLoc = PP.getLocForEndOfToken(ColonLoc);
  965   SourceLocation StartLoc = Tok.getLocation();
  966   SourceLocation EndLoc;
 1036     SourceLocation LabelLoc = ConsumeToken();
 1046       SourceLocation IdLoc = ConsumeToken();
 1085       SourceLocation ExtLoc = ConsumeToken();
 1099         SourceLocation DeclStart = Tok.getLocation(), DeclEnd;
 1125   SourceLocation CloseLoc = Tok.getLocation();
 1151                                        SourceLocation Loc,
 1202 StmtResult Parser::ParseIfStatement(SourceLocation *TrailingElseLoc) {
 1204   SourceLocation IfLoc = ConsumeToken();  // eat the 'if'.
 1269   SourceLocation ThenStmtLoc = Tok.getLocation();
 1271   SourceLocation InnerStatementTrailingElseLoc;
 1285   SourceLocation ElseLoc;
 1286   SourceLocation ElseStmtLoc;
 1350 StmtResult Parser::ParseSwitchStatement(SourceLocation *TrailingElseLoc) {
 1352   SourceLocation SwitchLoc = ConsumeToken();  // eat the 'switch'.
 1435 StmtResult Parser::ParseWhileStatement(SourceLocation *TrailingElseLoc) {
 1437   SourceLocation WhileLoc = Tok.getLocation();
 1506   SourceLocation DoLoc = ConsumeToken();  // eat the 'do'.
 1543   SourceLocation WhileLoc = ConsumeToken();
 1613 StmtResult Parser::ParseForStatement(SourceLocation *TrailingElseLoc) {
 1615   SourceLocation ForLoc = ConsumeToken();  // eat the 'for'.
 1617   SourceLocation CoawaitLoc;
 1674   SourceLocation EmptyInitStmtSemiLoc;
 1680     SourceLocation SemiLoc = Tok.getLocation();
 1688     SourceLocation Loc = ConsumeToken();
 1717     SourceLocation DeclStart = Tok.getLocation(), DeclEnd;
 1954   SourceLocation GotoLoc = ConsumeToken();  // eat the 'goto'.
 1965     SourceLocation StarLoc = ConsumeToken();
 1987   SourceLocation ContinueLoc = ConsumeToken();  // eat the 'continue'.
 1998   SourceLocation BreakLoc = ConsumeToken();  // eat the 'break'.
 2012   SourceLocation ReturnLoc = ConsumeToken();  // eat the 'return'.
 2048                                        SourceLocation *TrailingElseLoc,
 2078   SourceLocation LBraceLoc = Tok.getLocation();
 2111   SourceLocation TryLoc = ConsumeToken();
 2128   SourceLocation LBraceLoc = Tok.getLocation();
 2189   SourceLocation TryLoc = ConsumeToken();
 2209 StmtResult Parser::ParseCXXTryBlockCommon(SourceLocation TryLoc, bool FnTry) {
 2228       SourceLocation Loc = ConsumeToken();
 2232       SourceLocation Loc = ConsumeToken();
 2279   SourceLocation CatchLoc = ConsumeToken();
tools/clang/lib/Parse/ParseStmtAsm.cpp
   39   SourceLocation AsmLoc;
   49   ClangAsmParserCallback(Parser &P, SourceLocation Loc, StringRef AsmString,
   79   SourceLocation translateLocation(const llvm::SourceMgr &LSM,
  131   SourceLocation Loc = translateLocation(LSM, Location);
  166 SourceLocation
  184   SourceLocation Loc = AsmLoc;
  195   SourceLocation Loc = translateLocation(LSM, D.getLoc());
  228   SourceLocation TemplateKWLoc;
  297 static bool buildMSAsmString(Preprocessor &PP, SourceLocation AsmLoc,
  394 StmtResult Parser::ParseMicrosoftAsmStatement(SourceLocation AsmLoc) {
  396   SourceLocation EndLoc = AsmLoc;
  406   SmallVector<SourceLocation, 4> LBraceLocs;
  425   SourceLocation TokLoc = Tok.getLocation();
  691   SourceLocation AsmLoc = ConsumeToken();
  699   SourceLocation Loc = Tok.getLocation();
tools/clang/lib/Parse/ParseTemplate.cpp
   27     DeclaratorContext Context, SourceLocation &DeclEnd,
   64     DeclaratorContext Context, SourceLocation &DeclEnd,
  105     SourceLocation ExportLoc;
  109     SourceLocation TemplateLoc;
  116     SourceLocation LAngleLoc, RAngleLoc;
  178     ParsingDeclRAIIObject &DiagsFromTParams, SourceLocation &DeclEnd,
  290         SourceLocation LAngleLoc
  341                                SourceLocation &DeclEnd) {
  349   SourceLocation BoolKWLoc;
  387   SourceLocation IdLoc = Result.getBeginLoc();
  423     SourceLocation &LAngleLoc, SourceLocation &RAngleLoc) {
  423     SourceLocation &LAngleLoc, SourceLocation &RAngleLoc) {
  621   SourceLocation KeyLoc = ConsumeToken();
  624   SourceLocation EllipsisLoc;
  633   SourceLocation NameLoc = Tok.getLocation();
  655   SourceLocation EqualLoc;
  682   SourceLocation TemplateLoc = ConsumeToken();
  684   SourceLocation LAngleLoc, RAngleLoc;
  722   SourceLocation EllipsisLoc;
  730   SourceLocation NameLoc = Tok.getLocation();
  758   SourceLocation EqualLoc;
  800   SourceLocation EllipsisLoc;
  807   SourceLocation EqualLoc;
  830 void Parser::DiagnoseMisplacedEllipsis(SourceLocation EllipsisLoc,
  831                                        SourceLocation CorrectLoc,
  842 void Parser::DiagnoseMisplacedEllipsisInDeclarator(SourceLocation EllipsisLoc,
  867 bool Parser::ParseGreaterThanInTemplateList(SourceLocation &RAngleLoc,
  923   SourceLocation TokBeforeGreaterLoc = PrevTokLocation;
  924   SourceLocation TokLoc = Tok.getLocation();
  995   SourceLocation AfterGreaterLoc = TokLoc.getLocWithOffset(GreaterLength);
 1037                                          SourceLocation &LAngleLoc,
 1039                                          SourceLocation &RAngleLoc) {
 1107                                      SourceLocation TemplateKWLoc,
 1115   SourceLocation TemplateNameLoc = TemplateName.getSourceRange().getBegin();
 1118   SourceLocation LAngleLoc, RAngleLoc;
 1267   SourceLocation EllipsisLoc;
 1271     SourceLocation TemplateKWLoc = ConsumeToken();
 1366   SourceLocation Loc = Tok.getLocation();
 1388     SourceLocation EllipsisLoc;
 1415                                          SourceLocation ExternLoc,
 1416                                          SourceLocation TemplateLoc,
 1417                                          SourceLocation &DeclEnd,
 1567 bool Parser::diagnoseUnknownTemplateId(ExprResult LHS, SourceLocation Less) {
 1574     SourceLocation Greater;
 1602     SourceLocation Less = ConsumeToken();
 1603     SourceLocation Greater;
 1617     SourceLocation Less = ConsumeToken();
tools/clang/lib/Parse/ParseTentative.cpp
  740     SourceLocation Loc;
tools/clang/lib/Parse/Parser.cpp
   72 DiagnosticBuilder Parser::Diag(SourceLocation Loc, unsigned DiagID) {
   86 void Parser::SuggestParentheses(SourceLocation Loc, unsigned DK,
   88   SourceLocation EndLoc = PP.getLocForEndOfToken(ParenRange.getEnd());
  118     SourceLocation Loc = Tok.getLocation();
  136   SourceLocation EndLoc = PP.getLocForEndOfToken(PrevTokLocation);
  181   SourceLocation StartLoc = Tok.getLocation();
  182   SourceLocation EndLoc = Tok.getLocation();
  799     SourceLocation StartLoc = Tok.getLocation();
  800     SourceLocation EndLoc;
  863       SourceLocation DeclEnd;
  873       SourceLocation DeclEnd;
  884         SourceLocation DeclEnd;
  893         SourceLocation DeclEnd;
  902       SourceLocation ExternLoc = ConsumeToken();
  903       SourceLocation TemplateLoc = ConsumeToken();
  907       SourceLocation DeclEnd;
 1032     SourceLocation CorrectLocationForAttributes =
 1058     SourceLocation AtLoc = ConsumeToken(); // the "@"
 1265     SourceLocation KWLoc;
 1363     SourceLocation DSStart = Tok.getLocation();
 1495 ExprResult Parser::ParseSimpleAsm(SourceLocation *EndLoc) {
 1497   SourceLocation Loc = ConsumeToken();
 1585   SourceLocation NameLoc = Tok.getLocation();
 1639     SourceLocation BeginLoc = NameLoc;
 1650       SourceLocation IdentifierLoc = ConsumeToken();
 1651       SourceLocation NewEndLoc;
 1795     SourceLocation TypenameLoc = ConsumeToken();
 1856     SourceLocation EndLoc = Tok.getLastLoc();
 1889       SourceLocation BeginLoc = Tok.getLocation();
 1899         SourceLocation IdentifierLoc = ConsumeToken();
 1900         SourceLocation NewEndLoc;
 2039 SourceLocation Parser::handleUnexpectedCodeCompletionToken() {
 2121   SourceLocation TemplateKWLoc; // FIXME: parsed, but unused.
 2206   SourceLocation StartLoc = Tok.getLocation();
 2216   SourceLocation ModuleLoc = ConsumeToken();
 2224     SourceLocation SemiLoc = ConsumeToken();
 2245     SourceLocation PrivateLoc = ConsumeToken();
 2251   SmallVector<std::pair<IdentifierInfo *, SourceLocation>, 2> Path;
 2257     SourceLocation ColonLoc = ConsumeToken();
 2258     SmallVector<std::pair<IdentifierInfo *, SourceLocation>, 2> Partition;
 2293 Decl *Parser::ParseModuleImport(SourceLocation AtLoc) {
 2294   SourceLocation StartLoc = AtLoc.isInvalid() ? Tok.getLocation() : AtLoc;
 2296   SourceLocation ExportLoc;
 2303   SourceLocation ImportLoc = ConsumeToken();
 2305   SmallVector<std::pair<IdentifierInfo *, SourceLocation>, 2> Path;
 2318     SourceLocation ColonLoc = ConsumeToken();
 2373     SourceLocation UseLoc,
 2374     SmallVectorImpl<std::pair<IdentifierInfo *, SourceLocation>> &Path,
tools/clang/lib/Rewrite/HTMLRewrite.cpp
   31 void html::HighlightRange(Rewriter &R, SourceLocation B, SourceLocation E,
   31 void html::HighlightRange(Rewriter &R, SourceLocation B, SourceLocation E,
  281   SourceLocation StartLoc = R.getSourceMgr().getLocForStartOfFile(FID);
  282   SourceLocation EndLoc = StartLoc.getLocWithOffset(FileEnd-FileStart);
tools/clang/lib/Rewrite/Rewriter.cpp
  231 unsigned Rewriter::getLocationOffsetAndFileID(SourceLocation Loc,
  255 bool Rewriter::InsertText(SourceLocation Loc, StringRef Str,
  296 bool Rewriter::InsertTextAfterToken(SourceLocation Loc, StringRef Str) {
  308 bool Rewriter::RemoveText(SourceLocation Start, unsigned Length,
  320 bool Rewriter::ReplaceText(SourceLocation Start, unsigned OrigLength,
  334   SourceLocation start = range.getBegin();
  345                                    SourceLocation parentIndent) {
tools/clang/lib/Rewrite/TokenRewriter.cpp
   63   std::map<SourceLocation, TokenRefTy>::iterator MapIt =
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
   64                            SourceLocation L,
   93       SourceLocation Open = SilenceableCondVal.getBegin();
   95         SourceLocation Close = SilenceableCondVal.getEnd();
  172                                    SourceLocation Loc) {
  336 static void EmitDiagForCXXThrowInNonThrowingFunc(Sema &S, SourceLocation OpLoc,
  528   SourceLocation FuncLoc;
  672   SourceLocation LBrace = Body->getBeginLoc(), RBrace = Body->getEndLoc();
  772   SourceLocation Loc = S.getLocForEndOfToken(VD->getEndLoc());
  794       SourceLocation ElseKwLoc = S.getLocForEndOfToken(Then->getEndLoc());
 1219                                             SourceLocation Loc) {
 1290       SourceLocation L = Label->getBeginLoc();
 1615   SourceLocation FunLocation, FunEndLocation;
 1663   ThreadSafetyReporter(Sema &S, SourceLocation FL, SourceLocation FEL)
 1663   ThreadSafetyReporter(Sema &S, SourceLocation FL, SourceLocation FEL)
 1682   void handleInvalidLockExp(StringRef Kind, SourceLocation Loc) override {
 1689                              SourceLocation Loc) override {
 1699                                  SourceLocation LocLocked,
 1700                                  SourceLocation LocUnlock) override {
 1710   void handleDoubleLock(StringRef Kind, Name LockName, SourceLocation LocLocked,
 1711                         SourceLocation LocDoubleLock) override {
 1721                                  SourceLocation LocLocked,
 1722                                  SourceLocation LocEndOfScope,
 1749                                 SourceLocation Loc1,
 1750                                 SourceLocation Loc2) override {
 1761                          SourceLocation Loc) override {
 1774                           LockKind LK, SourceLocation Loc,
 1838                              SourceLocation Loc) override {
 1846                              SourceLocation Loc) override {
 1853                                 SourceLocation Loc) override {
 1859   void handleBeforeAfterCycle(Name L1Name, SourceLocation Loc) override {
 1902   void warnLoopStateMismatch(SourceLocation Loc,
 1910   void warnParamReturnTypestateMismatch(SourceLocation Loc,
 1922   void warnParamTypestateMismatch(SourceLocation Loc, StringRef ExpectedState,
 1931   void warnReturnTypestateForUnconsumableType(SourceLocation Loc,
 1939   void warnReturnTypestateMismatch(SourceLocation Loc, StringRef ExpectedState,
 1949                                    SourceLocation Loc) override {
 1958                              StringRef State, SourceLocation Loc) override {
 2165     SourceLocation FL = AC.getDecl()->getLocation();
 2166     SourceLocation FEL = AC.getDecl()->getEndLoc();
tools/clang/lib/Sema/CodeCompleteConsumer.cpp
  574         const SourceLocation BLoc = FixIt.RemoveRange.getBegin();
  575         const SourceLocation ELoc = FixIt.RemoveRange.getEnd();
  648     unsigned NumCandidates, SourceLocation OpenParLoc) {
tools/clang/lib/Sema/CoroutineStmtBuilder.h
   29   SourceLocation Loc;
tools/clang/lib/Sema/DeclSpec.cpp
   46 void CXXScopeSpec::Extend(ASTContext &Context, SourceLocation TemplateKWLoc,
   47                           TypeLoc TL, SourceLocation ColonColonLoc) {
   58                           SourceLocation IdentifierLoc,
   59                           SourceLocation ColonColonLoc) {
   71                           SourceLocation NamespaceLoc,
   72                           SourceLocation ColonColonLoc) {
   84                           SourceLocation AliasLoc,
   85                           SourceLocation ColonColonLoc) {
   97                               SourceLocation ColonColonLoc) {
  107                              SourceLocation SuperLoc,
  108                              SourceLocation ColonColonLoc) {
  135 SourceLocation CXXScopeSpec::getLastQualifierNameLoc() const {
  153                                              SourceLocation LParenLoc,
  156                                              SourceLocation EllipsisLoc,
  157                                              SourceLocation RParenLoc,
  159                                              SourceLocation RefQualifierLoc,
  160                                              SourceLocation MutableLoc,
  171                                              SourceLocation LocalRangeBegin,
  172                                              SourceLocation LocalRangeEnd,
  281     SourceLocation LSquareLoc,
  283     SourceLocation RSquareLoc) {
  410     llvm::function_ref<void(TQ, StringRef, SourceLocation)> Handle) {
  422     llvm::function_ref<void(TQ, StringRef, SourceLocation)> Handle) {
  589 bool DeclSpec::SetStorageClassSpec(Sema &S, SCS SC, SourceLocation Loc,
  651 bool DeclSpec::SetStorageClassSpecThread(TSCS TSC, SourceLocation Loc,
  665 bool DeclSpec::SetTypeSpecWidth(TSW W, SourceLocation Loc,
  682 bool DeclSpec::SetTypeSpecComplex(TSC C, SourceLocation Loc,
  692 bool DeclSpec::SetTypeSpecSign(TSS S, SourceLocation Loc,
  702 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc,
  710 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation TagKwLoc,
  711                                SourceLocation TagNameLoc,
  733 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc,
  755 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc,
  763 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation TagKwLoc,
  764                                SourceLocation TagNameLoc,
  787 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc,
  811 bool DeclSpec::SetTypeSpecSat(SourceLocation Loc, const char *&PrevSpec,
  824 bool DeclSpec::SetTypeAltiVecVector(bool isAltiVecVector, SourceLocation Loc,
  839 bool DeclSpec::SetTypePipe(bool isPipe, SourceLocation Loc,
  856 bool DeclSpec::SetTypeAltiVecPixel(bool isAltiVecPixel, SourceLocation Loc,
  873 bool DeclSpec::SetTypeAltiVecBool(bool isAltiVecBool, SourceLocation Loc,
  898 bool DeclSpec::SetTypeQual(TQ T, SourceLocation Loc, const char *&PrevSpec,
  914 bool DeclSpec::SetTypeQual(TQ T, SourceLocation Loc) {
  929 bool DeclSpec::setFunctionSpecInline(SourceLocation Loc, const char *&PrevSpec,
  943 bool DeclSpec::setFunctionSpecForceInline(SourceLocation Loc, const char *&PrevSpec,
  955 bool DeclSpec::setFunctionSpecVirtual(SourceLocation Loc,
  970 bool DeclSpec::setFunctionSpecExplicit(SourceLocation Loc,
  973                                        SourceLocation CloseParenLoc) {
  992 bool DeclSpec::setFunctionSpecNoreturn(SourceLocation Loc,
 1007 bool DeclSpec::SetFriendSpec(SourceLocation Loc, const char *&PrevSpec,
 1025 bool DeclSpec::setModulePrivateSpec(SourceLocation Loc, const char *&PrevSpec,
 1038                                 SourceLocation Loc, const char *&PrevSpec,
 1077     SourceLocation ExtraLocs[NumLocs] = {
 1082     SourceLocation FirstLoc;
 1301     SourceLocation SCLoc;
 1333     SourceLocation SCLoc;
 1368 void UnqualifiedId::setOperatorFunctionId(SourceLocation OperatorLoc,
 1370                                           SourceLocation SymbolLocations[3]) {
 1383 bool VirtSpecifiers::SetSpecifier(Specifier VS, SourceLocation Loc,
tools/clang/lib/Sema/DelayedDiagnostic.cpp
   25                                     ArrayRef<SourceLocation> Locs,
   49   DD.AvailabilityData.SelectorLocs = new SourceLocation[Locs.size()];
   51          sizeof(SourceLocation) * Locs.size());
tools/clang/lib/Sema/JumpDiagnostics.cpp
   57     SourceLocation Loc;
   60               SourceLocation L)
   85   void CheckJump(Stmt *From, Stmt *To, SourceLocation DiagLoc,
  270     SourceLocation Loc = D->getLocation();
  634       SourceLocation Loc;
  869 void JumpScopeChecker::CheckJump(Stmt *From, Stmt *To, SourceLocation DiagLoc,
tools/clang/lib/Sema/MultiplexExternalSemaSource.cpp
  232     llvm::MapVector<NamedDecl *, SourceLocation> &Undefined) {
  239                     llvm::SmallVector<std::pair<SourceLocation, bool>, 4>> &
  283                   SmallVectorImpl<std::pair<Selector, SourceLocation> > &Sels) {
  302                                                    SourceLocation> > &Pending) {
  331     SourceLocation Loc, QualType T) {
tools/clang/lib/Sema/ParsedAttr.cpp
   28 IdentifierLoc *IdentifierLoc::create(ASTContext &Ctx, SourceLocation Loc,
tools/clang/lib/Sema/Sema.cpp
   49 SourceLocation Sema::getLocForEndOfToken(SourceLocation Loc, unsigned Offset) {
   49 SourceLocation Sema::getLocForEndOfToken(SourceLocation Loc, unsigned Offset) {
   82   llvm::SmallVector<SourceLocation, 8> IncludeStack;
   89   virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason,
   97       SourceLocation IncludeLoc = SM.getIncludeLoc(SM.getFileID(Loc));
  389 void Sema::warnStackExhausted(SourceLocation Loc) {
  397 void Sema::runWithSufficientStackSpace(SourceLocation Loc,
  406 bool Sema::makeUnavailableInSystemHeader(SourceLocation loc,
  463                                                SourceLocation Loc) {
  490   SourceLocation MaybeMacroLoc = E->getBeginLoc();
  658     SmallVectorImpl<std::pair<NamedDecl *, SourceLocation> > &Undefined) {
  714   SmallVector<std::pair<NamedDecl *, SourceLocation>, 16> Undefined;
  720     SourceLocation UseLoc = Undef.second;
  872     SourceLocation StartOfTU =
 1330       SourceLocation Loc = Diags.getCurrentDiagLoc();
 1389 Sema::Diag(SourceLocation Loc, const PartialDiagnostic& PD) {
 1418     const SourceLocation &Loc = PDAt.first;
 1459 Sema::DeviceDiagBuilder::DeviceDiagBuilder(Kind K, SourceLocation Loc,
 1510     SourceLocation OrigLoc,
 1524     SourceLocation Loc;
 1553     for (std::pair<CanonicalDeclPtr<FunctionDecl>, SourceLocation> FDLoc :
 1556       SourceLocation CallLoc = FDLoc.second;
 1570 Sema::DeviceDiagBuilder Sema::targetDiag(SourceLocation Loc, unsigned DiagID) {
 1585 bool Sema::findMacroSpelling(SourceLocation &locref, StringRef name) {
 1586   SourceLocation loc = locref;
 1670   SourceLocation Loc = VD->getLocation();
 1914     llvm::MapVector<NamedDecl *, SourceLocation> &Undefined) {}
 1917     FieldDecl *, llvm::SmallVector<std::pair<SourceLocation, bool>, 4>> &) {}
 2038                           const SourceLocation FinalNoteLoc) {
 2066 static void notePlausibleOverloads(Sema &S, SourceLocation Loc,
 2113   SourceLocation Loc = E.get()->getExprLoc();
 2125     SourceLocation ParenInsertionLoc = getLocForEndOfToken(Range.getEnd());
 2257 bool Sema::checkOpenCLDisabledTypeOrDecl(T D, DiagLocT DiagLoc,
 2282   auto Loc = DS.getTypeSpecTypeLoc();
tools/clang/lib/Sema/SemaAccess.cpp
 1258 static void DiagnoseBadAccess(Sema &S, SourceLocation Loc,
 1294                                                  SourceLocation AccessLoc,
 1393                                  SourceLocation Loc,
 1411                                          SourceLocation Loc,
 1436 static Sema::AccessResult CheckAccess(Sema &S, SourceLocation Loc,
 1492   SourceLocation Loc = DD.getAccessLoc();
 1586 Sema::AccessResult Sema::CheckDestructorAccess(SourceLocation Loc,
 1610 Sema::AccessResult Sema::CheckConstructorAccess(SourceLocation UseLoc,
 1653 Sema::AccessResult Sema::CheckConstructorAccess(SourceLocation UseLoc,
 1695 Sema::AccessResult Sema::CheckAllocationAccess(SourceLocation OpLoc,
 1715 Sema::AccessResult Sema::CheckMemberAccess(SourceLocation UseLoc,
 1731 Sema::CheckStructuredBindingMemberAccess(SourceLocation UseLoc,
 1747 Sema::AccessResult Sema::CheckMemberOperatorAccess(SourceLocation OpLoc,
 1823 Sema::AccessResult Sema::CheckBaseClassAccess(SourceLocation AccessLoc,
tools/clang/lib/Sema/SemaAttr.cpp
  206                                    SourceLocation PragmaLoc) {
  256 void Sema::ActOnPragmaClangSection(SourceLocation PragmaLoc, PragmaClangSectionAction Action,
  289 void Sema::ActOnPragmaPack(SourceLocation PragmaLoc, PragmaMsStackAction Action,
  336                                         SourceLocation IncludeLoc) {
  338     SourceLocation PrevLocation = PackStack.CurrentPragmaLocation;
  380       SourceLocation FixItLoc = Lexer::findLocationAfterToken(
  394 void Sema::ActOnPragmaMSComment(SourceLocation CommentLoc,
  402 void Sema::ActOnPragmaDetectMismatch(SourceLocation Loc, StringRef Name,
  412     SourceLocation PragmaLoc) {
  418                                  SourceLocation PragmaLoc,
  427 void Sema::PragmaStack<ValueType>::Act(SourceLocation PragmaLocation,
  493                         SourceLocation PragmaSectionLocation) {
  512 void Sema::ActOnPragmaMSSeg(SourceLocation PragmaLocation,
  539 void Sema::ActOnPragmaMSSection(SourceLocation PragmaLocation,
  544 void Sema::ActOnPragmaMSInitSeg(SourceLocation PragmaLocation,
  554                              SourceLocation PragmaLoc) {
  584   SourceLocation Loc;
  630   SourceLocation AfterCommaLoc = Lexer::findLocationAfterToken(
  654     ParsedAttr &Attribute, SourceLocation PragmaLoc,
  765 void Sema::ActOnPragmaAttributeEmptyPush(SourceLocation PragmaLoc,
  772 void Sema::ActOnPragmaAttributePop(SourceLocation PragmaLoc,
  849 void Sema::ActOnPragmaOptimize(bool On, SourceLocation PragmaLoc) {
  864                                             SourceLocation Loc) {
  877 typedef std::vector<std::pair<unsigned, SourceLocation> > VisStack;
  894   SourceLocation loc = Stack->back().second;
  905 static void PushPragmaVisibility(Sema &S, unsigned type, SourceLocation loc) {
  915                                  SourceLocation PragmaLoc) {
  956                                        SourceLocation Loc) {
  964 void Sema::PopPragmaVisibility(bool IsNamespaceEnd, SourceLocation EndLoc) {
  973   const std::pair<unsigned, SourceLocation> *Back = &Stack->back();
tools/clang/lib/Sema/SemaCUDA.cpp
   40 ExprResult Sema::ActOnCUDAExecConfigExpr(Scope *S, SourceLocation LLLLoc,
   42                                          SourceLocation GGGLoc) {
  407 bool Sema::isEmptyCudaConstructor(SourceLocation Loc, CXXConstructorDecl *CD) {
  441 bool Sema::isEmptyCudaDestructor(SourceLocation Loc, CXXDestructorDecl *DD) {
  605 Sema::DeviceDiagBuilder Sema::CUDADiagIfDeviceCode(SourceLocation Loc,
  633 Sema::DeviceDiagBuilder Sema::CUDADiagIfHostCode(SourceLocation Loc,
  659 bool Sema::CheckCUDACall(SourceLocation Loc, FunctionDecl *Callee) {
tools/clang/lib/Sema/SemaCXXScopeSpec.cpp
  220   SourceLocation loc = SS.getLastQualifierNameLoc();
  272 bool Sema::ActOnCXXGlobalScopeSpecifier(SourceLocation CCLoc,
  278 bool Sema::ActOnSuperScopeSpecifier(SourceLocation SuperLoc,
  279                                     SourceLocation ColonColonLoc,
  848                                                SourceLocation ColonColonLoc) {
  890                                        SourceLocation TemplateKWLoc,
  892                                        SourceLocation TemplateNameLoc,
  893                                        SourceLocation LAngleLoc,
  895                                        SourceLocation RAngleLoc,
  896                                        SourceLocation CCLoc,
tools/clang/lib/Sema/SemaCast.cpp
  235 Sema::ActOnCXXNamedCast(SourceLocation OpLoc, tok::TokenKind Kind,
  236                         SourceLocation LAngleBracketLoc, Declarator &D,
  237                         SourceLocation RAngleBracketLoc,
  238                         SourceLocation LParenLoc, Expr *E,
  239                         SourceLocation RParenLoc) {
  258 Sema::BuildCXXNamedCast(SourceLocation OpLoc, tok::TokenKind Kind,
  335 ExprResult Sema::ActOnBuiltinBitCastExpr(SourceLocation KWLoc, Declarator &D,
  337                                          SourceLocation RParenLoc) {
  347 ExprResult Sema::BuildBuiltinBitCastExpr(SourceLocation KWLoc,
  349                                          SourceLocation RParenLoc) {
  965   SourceLocation BeginLoc = OpRange.getBegin();
 1930   SourceLocation NameLoc = FD->getFirstDecl()->getNameInfo().getLoc();
 1963 static void checkIntToPointerCast(bool CStyle, SourceLocation Loc,
 2880 ExprResult Sema::BuildCStyleCastExpr(SourceLocation LPLoc,
 2882                                      SourceLocation RPLoc,
 2908                                             SourceLocation LPLoc,
 2910                                             SourceLocation RPLoc) {
tools/clang/lib/Sema/SemaChecking.cpp
  102 SourceLocation Sema::getLocationOfStringLiteralByte(const StringLiteral *SL,
  253   SourceLocation BuiltinLoc = BuiltinCall->getBeginLoc();
  500       SourceLocation ErrorLoc;
 4137                                  SourceLocation CallSiteLoc) {
 4208                                   SourceLocation CallSiteLoc) {
 4306                      bool IsMemberFunction, SourceLocation Loc,
 4364                                 SourceLocation Loc) {
 4427 bool Sema::CheckObjCMethodCall(ObjCMethodDecl *Method, SourceLocation lbrac,
 4524                                  SourceLocation RParenLoc, MultiExprArg Args,
 5630   SourceLocation ParamLoc;
 5843   SourceLocation BuiltinLoc = TheCall->getBeginLoc();
 5957                                        SourceLocation BuiltinLoc,
 5958                                        SourceLocation RParenLoc) {
 6760   SourceLocation getLocationOfByte(
 6768   SourceLocation getBeginLoc() const LLVM_READONLY {
 6772   SourceLocation getEndLoc() const LLVM_READONLY { return FExpr->getEndLoc(); }
 7122                                 SourceLocation Loc, SourceRange Range,
 7136                                 SourceLocation Loc, SourceRange Range,
 7186   SourceLocation FormatLoc = Args[format_idx]->getBeginLoc();
 7288                        const PartialDiagnostic &PDiag, SourceLocation StringLoc,
 7293   bool HandleInvalidConversionSpecifier(unsigned argIndex, SourceLocation Loc,
 7298   void HandlePositionalNonpositionalArgs(SourceLocation Loc,
 7305   SourceLocation getLocationOfByte(const char *x);
 7315   void EmitFormatDiagnostic(PartialDiagnostic PDiag, SourceLocation StringLoc,
 7328   SourceLocation Start = getLocationOfByte(startSpecifier);
 7329   SourceLocation End   = getLocationOfByte(startSpecifier + specifierLen - 1);
 7337 SourceLocation CheckFormatHandler::getLocationOfByte(const char *x) {
 7506   SourceLocation Loc = ArgExpr->getBeginLoc();
 7523                                                      SourceLocation Loc,
 7581 CheckFormatHandler::HandlePositionalNonpositionalArgs(SourceLocation Loc,
 7614                                               SourceLocation Loc,
 7652     const PartialDiagnostic &PDiag, SourceLocation Loc, bool IsStringLocation,
 7957       SourceLocation EndLoc = S.getLocForEndOfToken(E->getEndLoc());
 8489         SourceLocation After = S.getLocForEndOfToken(E->getEndLoc());
 9069 static void emitReplacement(Sema &S, SourceLocation Loc, SourceRange Range,
 9315                                            SourceLocation FnLoc,
 9316                                            SourceLocation RParenLoc) {
 9405                      SourceLocation SL) {
 9414   void visitARCStrong(QualType FT, SourceLocation SL) {
 9417   void visitARCWeak(QualType FT, SourceLocation SL) {
 9420   void visitStruct(QualType FT, SourceLocation SL) {
 9425                   const ArrayType *AT, SourceLocation SL) {
 9428   void visitTrivial(QualType FT, SourceLocation SL) {}
 9447                      SourceLocation SL) {
 9456   void visitARCStrong(QualType FT, SourceLocation SL) {
 9459   void visitARCWeak(QualType FT, SourceLocation SL) {
 9462   void visitStruct(QualType FT, SourceLocation SL) {
 9467                   SourceLocation SL) {
 9471                 SourceLocation SL) {}
 9472   void visitTrivial(QualType FT, SourceLocation SL) {}
 9473   void visitVolatileTrivial(QualType FT, SourceLocation SL) {}
 9513                                         SourceLocation CallLoc,
 9514                                         SourceLocation ArgLoc) {
 9536   SourceLocation CallLoc = Call->getRParenLoc();
 9541     SourceLocation DiagLoc = SizeArg->getExprLoc();
 9563     SourceLocation DiagLoc = Call->getArg(1)->getExprLoc();
 9657           SourceLocation SL = SizeOfArg->getExprLoc();
 9934   SourceLocation SL = LenArg->getBeginLoc();
 9977                          SourceLocation ReturnLoc,
10011 void Sema::CheckFloatComparison(SourceLocation Loc, Expr* LHS, Expr *RHS) {
10476 static void AnalyzeImplicitConversions(Sema &S, Expr *E, SourceLocation CC,
10489   SourceLocation BeginLoc = E->getBeginLoc();
10898                                       SourceLocation InitLoc) {
11054                             SourceLocation CContext, unsigned diag,
11069                             SourceLocation CContext,
11087   SourceLocation EndLoc = S.getLocForEndOfToken(SourceExpr->getEndLoc());
11096                                     SourceLocation CContext) {
11278                                              SourceLocation CC) {
11299                                    SourceLocation CC) {
11319   SourceLocation Loc = E->getSourceRange().getBegin();
11444                                           SourceLocation CC) {
11479 static void CheckConditionalWithEnumTypes(Sema &S, SourceLocation Loc,
11507   SourceLocation ExprLoc = E->getExprLoc();
11543                                     SourceLocation CC,
11975                                      SourceLocation CC, QualType T);
11978                                     SourceLocation CC, bool &ICContext) {
11990                                      SourceLocation CC, QualType T) {
12024 static void CheckBoolLikeConversion(Sema &S, Expr *E, SourceLocation CC) {
12035 static void AnalyzeImplicitConversions(Sema &S, Expr *OrigE, SourceLocation CC,
12203 static bool IsInAnyMacroBody(const SourceManager &SM, SourceLocation Loc) {
12414 void Sema::CheckImplicitConversions(Expr *E, SourceLocation CC) {
12434 void Sema::CheckBoolLikeConversion(Expr *E, SourceLocation CC) {
12992 void Sema::CheckCompletedExpr(Expr *E, SourceLocation CheckLoc,
13004 void Sema::CheckBitFieldInitialization(SourceLocation InitLoc,
13011                                          SourceLocation Loc) {
13321       SourceLocation RBracketLoc = SourceMgr.getSpellingLoc(
13324         SourceLocation IndexLoc =
13435   SourceLocation Loc;
13887 static bool checkUnsafeAssignLiteral(Sema &S, SourceLocation Loc,
13908 static bool checkUnsafeAssignObject(Sema &S, SourceLocation Loc,
13930 bool Sema::checkUnsafeAssigns(SourceLocation Loc,
13943 void Sema::checkUnsafeExprAssigns(SourceLocation Loc,
14009                                         SourceLocation StmtLoc,
14039 void Sema::DiagnoseEmptyStmtBody(SourceLocation StmtLoc,
14064   SourceLocation StmtLoc;
14130                              SourceLocation OpLoc) {
14537                                     SourceLocation CallSiteLoc) {
tools/clang/lib/Sema/SemaCodeComplete.cpp
  370 void PreferredTypeBuilder::enterReturn(Sema &S, SourceLocation Tok) {
  388 void PreferredTypeBuilder::enterVariableInit(SourceLocation Tok, Decl *D) {
  396     SourceLocation Tok, llvm::function_ref<QualType()> ComputeType) {
  402 void PreferredTypeBuilder::enterParenExpr(SourceLocation Tok,
  403                                           SourceLocation LParLoc) {
  519 void PreferredTypeBuilder::enterBinary(Sema &S, SourceLocation Tok, Expr *LHS,
  526 void PreferredTypeBuilder::enterMemAccess(Sema &S, SourceLocation Tok,
  538 void PreferredTypeBuilder::enterUnary(Sema &S, SourceLocation Tok,
  540                                       SourceLocation OpLoc) {
  546 void PreferredTypeBuilder::enterSubscript(Sema &S, SourceLocation Tok,
  553 void PreferredTypeBuilder::enterTypeCast(SourceLocation Tok,
  560 void PreferredTypeBuilder::enterCondition(Sema &S, SourceLocation Tok) {
 4008 void Sema::CodeCompleteModuleImport(SourceLocation ImportLoc,
 4697                                            SourceLocation OpLoc, bool IsArrow,
 4838                                                 SourceLocation ClassNameLoc,
 5050     OverloadCandidateSet &CandidateSet, SourceLocation Loc) {
 5096                      unsigned CurrentArg, SourceLocation OpenParLoc) {
 5106                                         SourceLocation OpenParLoc) {
 5118   SourceLocation Loc = Fn->getExprLoc();
 5201                                                SourceLocation Loc,
 5203                                                SourceLocation OpenParLoc) {
 5241     ArrayRef<Expr *> ArgExprs, IdentifierInfo *II, SourceLocation OpenParLoc) {
 6633 void Sema::CodeCompleteObjCSuperMessage(Scope *S, SourceLocation SuperLoc,
 6673       SourceLocation TemplateKWLoc;
 7170                                       SourceLocation ClassNameLoc) {
 7214                                              SourceLocation ClassNameLoc) {
 7249                                                   SourceLocation ClassNameLoc) {
tools/clang/lib/Sema/SemaCoroutine.cpp
   31                                  SourceLocation Loc, bool &Res) {
   42                          SourceLocation Loc) {
   51                                   SourceLocation KwLoc) {
   53   const SourceLocation FuncLoc = FD->getLocation();
  144                                           SourceLocation Loc) {
  186 static bool isValidCoroutineContext(Sema &S, SourceLocation Loc,
  253                                                  SourceLocation Loc) {
  275 static ExprResult buildOperatorCoawaitCall(Sema &SemaRef, SourceLocation Loc,
  284                                            SourceLocation Loc, Expr *E) {
  292 static Expr *buildBuiltinCall(Sema &S, SourceLocation Loc, Builtin::ID Id,
  313                                        SourceLocation Loc) {
  346 static ExprResult buildMemberCall(Sema &S, Expr *Base, SourceLocation Loc,
  376                            SourceLocation Loc) {
  400                                                   SourceLocation Loc, Expr *E) {
  468                                    SourceLocation Loc, StringRef Name,
  480 VarDecl *Sema::buildCoroutinePromise(SourceLocation Loc) {
  572 static FunctionScopeInfo *checkCoroutineContext(Sema &S, SourceLocation Loc,
  599 bool Sema::ActOnCoroutineBodyStart(Scope *SC, SourceLocation KWLoc,
  614   SourceLocation Loc = Fn->getLocation();
  679 static void checkSuspensionContext(Sema &S, SourceLocation Loc,
  692 ExprResult Sema::ActOnCoawaitExpr(Scope *S, SourceLocation Loc, Expr *E) {
  712 ExprResult Sema::BuildUnresolvedCoawaitExpr(SourceLocation Loc, Expr *E,
  750 ExprResult Sema::BuildResolvedCoawaitExpr(SourceLocation Loc, Expr *E,
  776   SourceLocation CallLoc = E->getExprLoc();
  791 ExprResult Sema::ActOnCoyieldExpr(Scope *S, SourceLocation Loc, Expr *E) {
  812 ExprResult Sema::BuildCoyieldExpr(SourceLocation Loc, Expr *E) {
  846 StmtResult Sema::ActOnCoreturnStmt(Scope *S, SourceLocation Loc, Expr *E) {
  854 StmtResult Sema::BuildCoreturnStmt(SourceLocation Loc, Expr *E,
  901 static Expr *buildStdNoThrowDeclRef(Sema &S, SourceLocation Loc) {
  932 static FunctionDecl *findDeleteForPromise(Sema &S, SourceLocation Loc,
 1053   auto Loc = E->getExprLoc();
 1172     auto PDLoc = PD->getLocation();
 1502   SourceLocation ExprLoc = E->getBeginLoc();
 1513 static VarDecl *buildVarDecl(Sema &S, SourceLocation Loc, QualType Type,
 1524 bool Sema::buildCoroutineParameterMoves(SourceLocation Loc) {
 1569 ClassTemplateDecl *Sema::lookupCoroutineTraits(SourceLocation KwLoc,
 1570                                                SourceLocation FuncLoc) {
tools/clang/lib/Sema/SemaDecl.cpp
  179                                 SourceLocation NameLoc,
  235                                                       SourceLocation NameLoc) {
  281 ParsedType Sema::getTypeName(const IdentifierInfo &II, SourceLocation NameLoc,
  556                                           SourceLocation NameLoc,
  658                                    SourceLocation IILoc,
  787                                     SourceLocation NameLoc) {
  835                                   QualType T, SourceLocation NameLoc) {
  850                                             SourceLocation NameLoc,
 1195                                              SourceLocation NameLoc) {
 1205                                             SourceLocation NameLoc,
 1215                                               SourceLocation NameLoc,
 1629 static bool isMainFileLoc(const Sema &S, SourceLocation Loc) {
 1818     SourceLocation AfterColon = Lexer::findLocationAfterToken(
 1881 void Sema::ActOnPopScope(SourceLocation Loc, Scope *S) {
 1936                                               SourceLocation IdLoc,
 2033                                      SourceLocation Loc) {
 2718   SourceLocation InsertLoc = InitDecl->getInnerLocStart();
 2999 static std::pair<diag::kind, SourceLocation>
 3002   SourceLocation OldLocation = Old->getLocation();
 3197   SourceLocation OldLocation;
 3825   SourceLocation OldLocation;
 4054   SourceLocation OldLocation;
 4197 void Sema::notePreviousDefinition(const NamedDecl *Old, SourceLocation New) {
 4233     SourceLocation OldIncLoc = SrcMgr.getIncludeLoc(FOldDecLoc.first);
 4234     SourceLocation NewIncLoc = SrcMgr.getIncludeLoc(FNewDecLoc.first);
 4357     SourceLocation tagLoc = TagFromDeclSpec->getInnerLocStart();
 4656                                          SourceLocation NameLoc,
 4776 static SourceLocation findDefaultInitializer(const CXXRecordDecl *Record) {
 4791                                       SourceLocation DefaultInitLoc) {
 5248     SourceLocation TNameLoc = Name.TemplateId->TemplateNameLoc;
 5433                                         SourceLocation Loc, bool IsTemplateId) {
 6759       SourceLocation TemplateKWLoc =
 7199 static SourceLocation getCaptureLocation(const LambdaScopeInfo *LSI,
 7294   SourceLocation CaptureLoc;
 7367     SourceLocation CaptureLoc = getCaptureLocation(LSI, ShadowedDecl);
 7395 void Sema::CheckShadowingDeclModification(Expr *E, SourceLocation Loc) {
 8091       SourceLocation Loc = FDParam->getTypeSpecStartLoc();
 8419         SourceLocation Loc = Typedef->getDecl()->getLocation();
 8710           SourceLocation InsertLoc;
 8835         SourceLocation ModulePrivateLoc
10336         SourceLocation AddConstLoc;
10592     SourceLocation NoreturnLoc = DS.getNoreturnSpecLoc();
11238     SourceLocation Loc = TSI->getTypeLoc().getBeginLoc();
11276                                               SourceLocation Loc) {
11289       SourceLocation SL = I->getExprLoc();
11328       QualType OrigTy, SourceLocation OrigLoc,
11382   SourceLocation OrigLoc;
11393       QualType OrigTy, SourceLocation OrigLoc,
11449   SourceLocation OrigLoc;
11458   DiagNonTrivalCUnionCopyVisitor(QualType OrigTy, SourceLocation OrigLoc,
11517   SourceLocation OrigLoc;
11524 void Sema::checkNonTrivialCUnion(QualType QT, SourceLocation Loc,
11866       SourceLocation Loc;
12310 Sema::ActOnCXXForRangeIdentifier(Scope *S, SourceLocation IdentLoc,
12313                                  SourceLocation AttrEnd) {
12490         SourceLocation DiagLoc = var->getLocation();
13090                                               SourceLocation Loc,
13144 ParmVarDecl *Sema::CheckParameter(DeclContext *DC, SourceLocation StartLoc,
13145                                   SourceLocation NameLoc, IdentifierInfo *Name,
13202     SourceLocation TypeEndLoc =
13228                                            SourceLocation LocAfterDecls) {
13750   for (const std::pair<SourceLocation, const BlockDecl *> &P :
14093 NamedDecl *Sema::ImplicitlyDefineFunction(SourceLocation Loc,
14173   SourceLocation NoLoc;
14404   SourceLocation UnderlyingLoc = TI->getTypeLoc().getBeginLoc();
14420 bool Sema::CheckEnumRedeclaration(SourceLocation EnumLoc, bool IsScoped,
14506                                         SourceLocation NewTagLoc,
14634                                          SourceLocation NameLoc) {
14698                      SourceLocation KWLoc, CXXScopeSpec &SS,
14699                      IdentifierInfo *Name, SourceLocation NameLoc,
14701                      SourceLocation ModulePrivateLoc,
14704                      SourceLocation ScopedEnumKWLoc,
14812     SourceLocation Loc = NameLoc.isValid() ? NameLoc : KWLoc;
15402   SourceLocation Loc = NameLoc.isValid() ? NameLoc : KWLoc;
15668                                            SourceLocation FinalLoc,
15670                                            SourceLocation LBraceLoc) {
15768 ExprResult Sema::VerifyBitField(SourceLocation FieldLoc,
15861 Decl *Sema::ActOnField(Scope *S, Decl *TagD, SourceLocation DeclStart,
15872                              SourceLocation DeclStart,
15884   SourceLocation Loc = DeclStart;
15944   SourceLocation TSSL = D.getBeginLoc();
15978                                 RecordDecl *Record, SourceLocation Loc,
15981                                 SourceLocation TSSL,
16098       SourceLocation ErrLoc = Loc;
16215           SourceLocation Loc = FD->getLocation();
16253                                 SourceLocation DeclStart,
16259   SourceLocation Loc = DeclStart;
16366 void Sema::ActOnLastBitfield(SourceLocation DeclLoc,
16400 void Sema::ActOnFields(Scope *S, SourceLocation RecLoc, Decl *EnclosingDecl,
16401                        ArrayRef<Decl *> Fields, SourceLocation LBrac,
16402                        SourceLocation RBrac,
16896                                           SourceLocation IdLoc,
17071                                                 SourceLocation IILoc) {
17097                               SourceLocation IdLoc, IdentifierInfo *Id,
17099                               SourceLocation EqualLoc, Expr *Val) {
17347 void Sema::ActOnEnumBody(SourceLocation EnumLoc, SourceRange BraceRange,
17584                                   SourceLocation StartLoc,
17585                                   SourceLocation EndLoc) {
17597                                       SourceLocation PragmaLoc,
17598                                       SourceLocation NameLoc,
17599                                       SourceLocation AliasNameLoc) {
17623                              SourceLocation PragmaLoc,
17624                              SourceLocation NameLoc) {
17638                                 SourceLocation PragmaLoc,
17639                                 SourceLocation NameLoc,
17640                                 SourceLocation AliasNameLoc) {
tools/clang/lib/Sema/SemaDeclAttr.cpp
  229                                SourceLocation>::type
  233 static SourceLocation getAttrLoc(const ParsedAttr &AL) { return AL.getLoc(); }
  369                                           SourceLocation *ArgLocation) {
  855     SourceLocation SrcLoc = AttrArg->getBeginLoc();
 1152     SourceLocation Loc;
 1551   SourceLocation AttrLoc = TmpAttr.getLocation();
 1600   SourceLocation AttrLoc = CI.getLoc();
 1855   SourceLocation LiteralLoc;
 2523   SourceLocation LiteralLoc;
 2877 bool Sema::checkSectionName(SourceLocation LiteralLoc, StringRef SecName) {
 2891   SourceLocation LiteralLoc;
 2913 static bool checkCodeSegName(Sema &S, SourceLocation LiteralLoc,
 2947   SourceLocation LiteralLoc;
 2968 bool Sema::checkTargetAttr(SourceLocation LiteralLoc, StringRef AttrStr) {
 2999   SourceLocation LiteralLoc;
 3027   SourceLocation Loc = E->getExprLoc();
 3576   SourceLocation AttrLoc = CI.getLoc();
 3644   SourceLocation AttrLoc = CI.getLoc();
 3909   SourceLocation AttrLoc = CI.getLoc();
 4945 bool Sema::checkNSReturnsRetainedReturnType(SourceLocation Loc, QualType QT) {
 5100   SourceLocation loc = Attrs.getLoc();
 5327   SourceLocation LiteralLoc;
 5439   SourceLocation ArgLoc;
 5516   SourceLocation ArgLoc;
 5667   SourceLocation ArgLoc;
 5689   SourceLocation ArgLoc;
 5711   SourceLocation ArgLoc;
 6052   SourceLocation LiteralLoc;
 6165     SourceLocation LiteralLoc;
 7333                                       SourceLocation Loc) {
 7708   SourceLocation Loc;
 7714   static AttributeInsertion createInsertionAfter(SourceLocation Loc) {
 7776     SourceLocation Loc =
 7800                                       ArrayRef<SourceLocation> Locs,
 7807   SourceLocation NoteLocation = OffendingDecl->getLocation();
 7823   SourceLocation Loc = Locs.front();
 8108                                     ArrayRef<SourceLocation> Locs,
 8369     SourceLocation IfInsertionLoc =
 8371     SourceLocation StmtEndLoc =
 8390     SourceLocation ElseInsertionLoc = Lexer::findLocationAfterToken(
 8473                                       ArrayRef<SourceLocation> Locs,
tools/clang/lib/Sema/SemaDeclCXX.cpp
  152 Sema::ImplicitExceptionSpecification::CalledDecl(SourceLocation CallLoc,
  251                               SourceLocation EqualLoc) {
  299 Sema::ActOnParamDefaultArgument(Decl *param, SourceLocation EqualLoc,
  345                                              SourceLocation EqualLoc,
  346                                              SourceLocation ArgLoc) {
  358                                           SourceLocation EqualLoc) {
  729     SmallVector<SourceLocation, 8> BadSpecifierLocs;
  731     SmallVector<SourceLocation, 8> CPlusPlus20SpecifierLocs;
  760       for (auto Loc : BadSpecifierLocs)
  770       for (auto Loc : CPlusPlus20SpecifierLocs)
  876     llvm::function_ref<ExprResult(SourceLocation, Expr *, unsigned)> GetInit) {
  886     SourceLocation Loc = B->getLocation();
  959                                      SourceLocation Loc, StringRef Trait,
 1016 getTrivialIntegralTemplateArgument(Sema &S, SourceLocation Loc, QualType T,
 1023 getTrivialTypeTemplateArgument(Sema &S, SourceLocation Loc, QualType T) {
 1029 static IsTupleLike isTupleLike(Sema &S, SourceLocation Loc, QualType T,
 1055     void diagnoseNotICE(Sema &S, SourceLocation Loc, SourceRange SR) {
 1074 static QualType getTupleLikeElementType(Sema &S, SourceLocation Loc,
 1162     SourceLocation Loc = B->getLocation();
 1255 static DeclAccessPair findDecomposableBaseClass(Sema &S, SourceLocation Loc,
 1372     SourceLocation Loc = B->getLocation();
 1583                              SourceLocation Loc, QualType T, unsigned DiagID,
 1642     SourceLocation ParamLoc = PD->getLocation();
 1767                                    DeclStmt *DS, SourceLocation &Cxx1yLoc,
 1964                            SmallVectorImpl<SourceLocation> &ReturnStmts,
 1965                            SourceLocation &Cxx1yLoc, SourceLocation &Cxx2aLoc,
 1965                            SourceLocation &Cxx1yLoc, SourceLocation &Cxx2aLoc,
 2111   SmallVector<SourceLocation, 4> ReturnStmts;
 2147   SourceLocation Cxx1yLoc, Cxx2aLoc;
 2411                          SourceLocation EllipsisLoc) {
 2429   SourceLocation BaseLoc = TInfo->getTypeLoc().getBeginLoc();
 2551                          ParsedType basetype, SourceLocation BaseLoc,
 2552                          SourceLocation EllipsisLoc) {
 2737 bool Sema::IsDerivedFrom(SourceLocation Loc, QualType Derived, QualType Base) {
 2764 bool Sema::IsDerivedFrom(SourceLocation Loc, QualType Derived, QualType Base,
 2824                                    SourceLocation Loc, SourceRange Range,
 2904                                    SourceLocation Loc, SourceRange Range,
 2950 bool Sema::ActOnAccessSpecifier(AccessSpecifier Access, SourceLocation ASLoc,
 2951                                 SourceLocation ColonLoc,
 3036   SourceLocation Loc = MD->getLocation();
 3037   SourceLocation SpellingLoc = Loc;
 3091 void Sema::CheckShadowInheritedFields(const SourceLocation &Loc,
 3154   SourceLocation Loc = NameInfo.getLoc();
 3249     SourceLocation ConstexprLoc = DS.getConstexprSpecLoc();
 3868                                                   SourceLocation InitLoc,
 3974                           SourceLocation IdLoc,
 3976                           SourceLocation EllipsisLoc) {
 3990                           SourceLocation IdLoc,
 3991                           SourceLocation LParenLoc,
 3993                           SourceLocation RParenLoc,
 3994                           SourceLocation EllipsisLoc) {
 4052                           SourceLocation IdLoc,
 4054                           SourceLocation EllipsisLoc) {
 4219                              SourceLocation IdLoc) {
 4296   SourceLocation NameLoc = TInfo->getTypeLoc().getLocalSourceRange().getBegin();
 4353                            SourceLocation EllipsisLoc) {
 4354   SourceLocation BaseLoc
 4487   SourceLocation ExprLoc = E->getBeginLoc();
 4596   SourceLocation Loc = Constructor->getLocation();
 5302                                 SourceLocation ColonLoc,
 5368 Sema::MarkBaseAndMemberDestructorsReferenced(SourceLocation Location,
 5502 bool Sema::isAbstractType(SourceLocation Loc, QualType T) {
 5523 bool Sema::RequireNonAbstractType(SourceLocation Loc, QualType T,
 6031     ClassTemplateSpecializationDecl *BaseTemplateSpec, SourceLocation BaseLoc) {
 6149                                         SourceLocation DefaultLoc) {
 6564   SourceLocation UseLoc;
 6573   InheritedConstructorInfo(Sema &S, SourceLocation UseLoc,
 6785     Sema &S, SourceLocation Loc, CXXMethodDecl *MD, Sema::CXXSpecialMember CSM,
 6789 computeImplicitExceptionSpec(Sema &S, SourceLocation Loc, CXXMethodDecl *MD) {
 6818 void Sema::EvaluateImplicitExceptionSpec(SourceLocation Loc, CXXMethodDecl *MD) {
 7077       SourceLocation InsertLoc;
 7250   static SourceLocation getSubobjectLoc(Subobject Subobj) {
 7303   SourceLocation Loc;
 7932 static bool checkTrivialSubobjectCall(Sema &S, SourceLocation SubobjLoc,
 8170         SourceLocation MLoc = MI->getBeginLoc();
 8366     Scope *S, SourceLocation RLoc, Decl *TagDecl, SourceLocation LBrac,
 8366     Scope *S, SourceLocation RLoc, Decl *TagDecl, SourceLocation LBrac,
 8367     SourceLocation RBrac, const ParsedAttributesView &AttrList) {
 8710       SourceLocation ParamLoc = Constructor->getParamDecl(0)->getLocation();
 8731     SourceLocation Loc;
 9003     SourceLocation Loc = Before.isValid() ? Before.getBegin() :
 9014         SourceLocation InsertLoc =
 9117   BadSpecifierDiagnoser(Sema &S, SourceLocation Loc, unsigned DiagID)
 9123   template<typename T> void check(SourceLocation SpecLoc, T Spec) {
 9126   void check(SourceLocation SpecLoc, DeclSpec::TST Spec) {
 9130   void check(SourceLocation SpecLoc, const char *Spec) {
 9265 static void DiagnoseNamespaceInlineMismatch(Sema &S, SourceLocation KeywordLoc,
 9266                                             SourceLocation Loc,
 9306     Scope *NamespcScope, SourceLocation InlineLoc, SourceLocation NamespaceLoc,
 9306     Scope *NamespcScope, SourceLocation InlineLoc, SourceLocation NamespaceLoc,
 9307     SourceLocation IdentLoc, IdentifierInfo *II, SourceLocation LBrace,
 9307     SourceLocation IdentLoc, IdentifierInfo *II, SourceLocation LBrace,
 9309   SourceLocation StartLoc = InlineLoc.isValid() ? InlineLoc : NamespaceLoc;
 9311   SourceLocation Loc = II ? IdentLoc : LBrace;
 9458 void Sema::ActOnFinishNamespaceDef(Decl *Dcl, SourceLocation RBrace) {
 9509   SourceLocation Loc;
 9532                                            SourceLocation Loc) {
 9705 static ClassTemplateDecl *LookupStdInitializerList(Sema &S, SourceLocation Loc){
 9739 QualType Sema::BuildStdInitializerList(QualType Element, SourceLocation Loc) {
 9804                                        SourceLocation IdentLoc,
 9830 Decl *Sema::ActOnUsingDirective(Scope *S, SourceLocation UsingLoc,
 9831                                 SourceLocation NamespcLoc, CXXScopeSpec &SS,
 9832                                 SourceLocation IdentLoc,
 9927                                   SourceLocation UsingLoc,
 9928                                   SourceLocation TypenameLoc, CXXScopeSpec &SS,
 9930                                   SourceLocation EllipsisLoc,
10393     Scope *S, AccessSpecifier AS, SourceLocation UsingLoc,
10394     bool HasTypenameKeyword, SourceLocation TypenameLoc, CXXScopeSpec &SS,
10395     DeclarationNameInfo NameInfo, SourceLocation EllipsisLoc,
10398   SourceLocation IdentLoc = NameInfo.getLoc();
10694 bool Sema::CheckUsingDeclRedeclaration(SourceLocation UsingLoc,
10697                                        SourceLocation NameLoc,
10772 bool Sema::CheckUsingDeclQualifier(SourceLocation UsingLoc,
10776                                    SourceLocation NameLoc) {
10819           SourceLocation InsertLoc = getLocForEndOfToken(NameInfo.getEndLoc());
10962                                   SourceLocation UsingLoc, UnqualifiedId &Name,
11116 Decl *Sema::ActOnNamespaceAliasDef(Scope *S, SourceLocation NamespaceLoc,
11117                                    SourceLocation AliasLoc,
11119                                    SourceLocation IdentLoc,
11196   SourceLocation Loc;
11202                                  SourceLocation Loc)
11273   ComputingExceptionSpec(Sema &S, CXXMethodDecl *MD, SourceLocation Loc)
11311     Sema &S, SourceLocation Loc, CXXMethodDecl *MD, Sema::CXXSpecialMember CSM,
11452   SourceLocation ClassLoc = ClassDecl->getLocation();
11493 void Sema::DefineImplicitDefaultConstructor(SourceLocation CurrentLocation,
11521   SourceLocation Loc = Constructor->getEndLoc().isValid()
11542 Sema::findInheritingConstructor(SourceLocation Loc,
11546   SourceLocation UsingLoc = Shadow->getLocation();
11630 void Sema::DefineInheritingConstructor(SourceLocation CurrentLocation,
11664   SourceLocation InitLoc = Shadow->getLocation();
11729   SourceLocation ClassLoc = ClassDecl->getLocation();
11777 void Sema::DefineImplicitDestructor(SourceLocation CurrentLocation,
11808   SourceLocation Loc = Destructor->getEndLoc().isValid()
11912   virtual Expr *build(Sema &S, SourceLocation Loc) const = 0;
11920   Expr *build(Sema &S, SourceLocation Loc) const override {
11930   Expr *build(Sema &S, SourceLocation Loc) const override {
11942   Expr *build(Sema &S, SourceLocation Loc) const override {
11957   Expr *build(Sema &S, SourceLocation Loc) const override {
11973   Expr *build(Sema &S, SourceLocation Loc) const override {
11989   Expr *build(Sema &S, SourceLocation Loc) const override {
12000   Expr *build(Sema &S, SourceLocation Loc) const override {
12013   Expr *build(Sema &S, SourceLocation Loc) const override {
12029 buildMemcpyForAssignmentOp(Sema &S, SourceLocation Loc, QualType T,
12109 buildSingleCopyAssignRecursively(Sema &S, SourceLocation Loc, QualType T,
12301 buildSingleCopyAssign(Sema &S, SourceLocation Loc, QualType T,
12349   SourceLocation ClassLoc = ClassDecl->getLocation();
12443 void Sema::DefineImplicitCopyAssignment(SourceLocation CurrentLocation,
12499   SourceLocation Loc = CopyAssignOperator->getEndLoc().isValid()
12670   SourceLocation ClassLoc = ClassDecl->getLocation();
12728                                                SourceLocation CurrentLocation) {
12808 void Sema::DefineImplicitMoveAssignment(SourceLocation CurrentLocation,
12856   SourceLocation Loc = MoveAssignOperator->getEndLoc().isValid()
13048   SourceLocation ClassLoc = ClassDecl->getLocation();
13109 void Sema::DefineImplicitCopyConstructor(SourceLocation CurrentLocation,
13143     SourceLocation Loc = CopyConstructor->getEndLoc().isValid()
13179   SourceLocation ClassLoc = ClassDecl->getLocation();
13241 void Sema::DefineImplicitMoveConstructor(SourceLocation CurrentLocation,
13268     SourceLocation Loc = MoveConstructor->getEndLoc().isValid()
13287                             SourceLocation CurrentLocation,
13345        SourceLocation CurrentLocation,
13416 Sema::BuildCXXConstructExpr(SourceLocation ConstructLoc, QualType DeclInitType,
13454 Sema::BuildCXXConstructExpr(SourceLocation ConstructLoc, QualType DeclInitType,
13480 Sema::BuildCXXConstructExpr(SourceLocation ConstructLoc, QualType DeclInitType,
13506 ExprResult Sema::BuildCXXDefaultInitExpr(SourceLocation Loc, FieldDecl *Field) {
13637                               SourceLocation Loc,
14192 Decl *Sema::ActOnStartLinkageSpecification(Scope *S, SourceLocation ExternLoc,
14194                                            SourceLocation LBraceLoc) {
14234                                             SourceLocation RBraceLoc) {
14245                                   SourceLocation SemiLoc) {
14260                                          SourceLocation StartLoc,
14261                                          SourceLocation Loc,
14436 Decl *Sema::ActOnStaticAssertDeclaration(SourceLocation StaticAssertLoc,
14439                                          SourceLocation RParenLoc) {
14450 Decl *Sema::BuildStaticAssertDeclaration(SourceLocation StaticAssertLoc,
14453                                          SourceLocation RParenLoc,
14521 FriendDecl *Sema::CheckFriendTypeDecl(SourceLocation LocStart,
14522                                       SourceLocation FriendLoc,
14593 Decl *Sema::ActOnTemplatedFriendTag(Scope *S, SourceLocation FriendLoc,
14594                                     unsigned TagSpec, SourceLocation TagLoc,
14596                                     SourceLocation NameLoc,
14729   SourceLocation Loc = DS.getBeginLoc();
14825   SourceLocation Loc = D.getIdentifierLoc();
15135 void Sema::SetDeclDeleted(Decl *Dcl, SourceLocation DelLoc) {
15203 void Sema::SetDeclDefaulted(Decl *Dcl, SourceLocation DefaultLoc) {
15467   SourceLocation EndLoc = InitRange.getEnd();
15482 void Sema::ActOnPureSpecifier(Decl *D, SourceLocation ZeroLoc) {
15588 void Sema::MarkVTableUsed(SourceLocation Loc, CXXRecordDecl *Class,
15667     SourceLocation Loc = VTableUses[I].second;
15744 void Sema::MarkVirtualMemberExceptionSpecsNeeded(SourceLocation Loc,
15751 void Sema::MarkVirtualMembersReferenced(SourceLocation Loc,
16145                                        SourceLocation DeclStart, Declarator &D,
16155   SourceLocation Loc = D.getIdentifierLoc();
16211   SourceLocation TSSL = D.getBeginLoc();
tools/clang/lib/Sema/SemaDeclObjC.cpp
   95   SourceLocation loc = method->getLocation();
  282                                                 SourceLocation ImplLoc) {
  528                                    const SourceLocation *ProtoLocs) {
  542                                 SourceLocation AtInterfaceLoc,
  545                                 SourceLocation ClassLoc,
  547                                 SourceLocation SuperLoc,
  667                                     SourceLocation varianceLoc,
  670                                     SourceLocation paramLoc,
  671                                     SourceLocation colonLoc,
  683       SourceLocation starLoc = getLocForEndOfToken(
  770                                                 SourceLocation lAngleLoc,
  772                                                 SourceLocation rAngleLoc) {
  833     SourceLocation diagLoc;
  872           SourceLocation diagLoc = newTypeParam->getVarianceLoc();
  951       SourceLocation insertionLoc
  976     Scope *S, SourceLocation AtInterfaceLoc, IdentifierInfo *ClassName,
  977     SourceLocation ClassLoc, ObjCTypeParamList *typeParamList,
  978     IdentifierInfo *SuperName, SourceLocation SuperLoc,
  981     const SourceLocation *ProtoLocs, SourceLocation EndProtoLoc,
  981     const SourceLocation *ProtoLocs, SourceLocation EndProtoLoc,
 1106                                   SmallVectorImpl<SourceLocation> &ProtocolLocs,
 1108                                    SourceLocation SuperLoc) {
 1132 Decl *Sema::ActOnCompatibilityAlias(SourceLocation AtLoc,
 1134                                     SourceLocation AliasLocation,
 1136                                     SourceLocation ClassLocation) {
 1182   SourceLocation &Ploc, SourceLocation PrevLoc,
 1182   SourceLocation &Ploc, SourceLocation PrevLoc,
 1208     SourceLocation AtProtoInterfaceLoc, IdentifierInfo *ProtocolName,
 1209     SourceLocation ProtocolLoc, Decl *const *ProtoRefs, unsigned NumProtoRefs,
 1210     const SourceLocation *ProtoLocs, SourceLocation EndProtoLoc,
 1210     const SourceLocation *ProtoLocs, SourceLocation EndProtoLoc,
 1396                                         SourceLocation ProtocolLoc,
 1398                                         SourceLocation TypeArgLoc,
 1408        SourceLocation lAngleLoc,
 1410        ArrayRef<SourceLocation> identifierLocs,
 1411        SourceLocation rAngleLoc,
 1412        SourceLocation &typeArgsLAngleLoc,
 1414        SourceLocation &typeArgsRAngleLoc,
 1415        SourceLocation &protocolLAngleLoc,
 1417        SourceLocation &protocolRAngleLoc,
 1431     SourceLocation firstClassNameLoc;
 1589       SourceLocation starLoc = getLocForEndOfToken(loc);
 1769 Sema::ActOnForwardProtocolDeclaration(SourceLocation AtProtocolLoc,
 1798     SourceLocation AtInterfaceLoc, IdentifierInfo *ClassName,
 1799     SourceLocation ClassLoc, ObjCTypeParamList *typeParamList,
 1800     IdentifierInfo *CategoryName, SourceLocation CategoryLoc,
 1802     const SourceLocation *ProtoLocs, SourceLocation EndProtoLoc,
 1802     const SourceLocation *ProtoLocs, SourceLocation EndProtoLoc,
 1894                       SourceLocation AtCatImplLoc,
 1895                       IdentifierInfo *ClassName, SourceLocation ClassLoc,
 1896                       IdentifierInfo *CatName, SourceLocation CatLoc,
 1960                       SourceLocation AtClassImplLoc,
 1961                       IdentifierInfo *ClassName, SourceLocation ClassLoc,
 1963                       SourceLocation SuperClassLoc,
 2112                                     SourceLocation RBrace) {
 2205 static void WarnUndefinedMethod(Sema &S, SourceLocation ImpLoc,
 2227   SourceLocation MethodLoc = method->getBeginLoc();
 2673                                     SourceLocation ImpLoc,
 3030 Sema::ActOnForwardClassDeclaration(SourceLocation AtClassLoc,
 3032                                    SourceLocation *IdentLocs,
 4028           SourceLocation DeclLoc(IDecl->getLocation());
 4029           SourceLocation SuperClassLoc(getLocForEndOfToken(DeclLoc));
 4415 static QualType mergeTypeNullabilityForRedecl(Sema &S, SourceLocation loc,
 4418                                               SourceLocation prevLoc,
 4503   SourceLocation Loc;
 4540     Scope *S, SourceLocation MethodLoc, SourceLocation EndLoc,
 4540     Scope *S, SourceLocation MethodLoc, SourceLocation EndLoc,
 4542     ArrayRef<SourceLocation> SelectorLocs, Selector Sel,
 4611     SourceLocation StartLoc = DI
 4810 void Sema::ActOnDefs(Scope *S, Decl *TagD, SourceLocation DeclStart,
 4852                                       SourceLocation StartLoc,
 4853                                       SourceLocation IdLoc,
 4968     SmallVector<std::pair<Selector, SourceLocation>, 4> Sels;
 4982     SourceLocation Loc = SelectorAndLocation.second;
 5057     SourceLocation Loc = CurMethod->getLocation();
tools/clang/lib/Sema/SemaExceptionSpec.cpp
   78 ExprResult Sema::ActOnNoexceptSpec(SourceLocation NoexceptLoc,
  188 Sema::ResolveExceptionSpec(SourceLocation Loc, const FunctionProtoType *FPT) {
  244     const FunctionProtoType *Old, SourceLocation OldLoc,
  245     const FunctionProtoType *New, SourceLocation NewLoc,
  439   SourceLocation FixItLoc;
  469     const FunctionProtoType *Old, SourceLocation OldLoc,
  470     const FunctionProtoType *New, SourceLocation NewLoc) {
  495     const FunctionProtoType *Old, SourceLocation OldLoc,
  496     const FunctionProtoType *New, SourceLocation NewLoc,
  647                                         SourceLocation OldLoc,
  649                                         SourceLocation NewLoc) {
  748                                     SourceLocation SuperLoc,
  750                                     SourceLocation SubLoc) {
  850                             SourceLocation TargetLoc, QualType Source,
  851                             SourceLocation SourceLoc) {
  871                                    SourceLocation TargetLoc,
  873                                    SourceLocation SourceLoc) {
tools/clang/lib/Sema/SemaExpr.cpp
   84 static void DiagnoseUnusedOfDecl(Sema &S, NamedDecl *D, SourceLocation Loc) {
  146                                                       SourceLocation Loc) {
  193     SourceLocation DeclBegin = First->getSourceRange().getBegin();
  211 bool Sema::DiagnoseUseOfDecl(NamedDecl *D, ArrayRef<SourceLocation> Locs,
  216   SourceLocation Loc = Locs.front();
  340 void Sema::DiagnoseSentinelCalls(NamedDecl *D, SourceLocation Loc,
  411   SourceLocation MissingNilLoc = getLocForEndOfToken(sentinelExpr->getEndLoc());
  498                                     SourceLocation AssignLoc,
  525             SourceLocation RHSLocEnd = S.getLocForEndOfToken(RHS->getEndLoc());
  915     SourceLocation TemplateKWLoc;
 1592 static SourceLocation getUDSuffixLoc(Sema &S, SourceLocation TokLoc,
 1592 static SourceLocation getUDSuffixLoc(Sema &S, SourceLocation TokLoc,
 1643   SmallVector<SourceLocation, 4> StringTokLocs;
 1677     SourceLocation RemovalDiagLoc;
 1704   SourceLocation UDSuffixLoc =
 1772                        SourceLocation Loc,
 1782                        SourceLocation TemplateKWLoc,
 1817                        SourceLocation TemplateKWLoc,
 1875     SourceLocation TNameLoc = Id.TemplateId->TemplateNameLoc;
 1886     DeclarationName Typo, SourceLocation TypoLoc, ArrayRef<Expr *> Args,
 1999     SourceLocation TypoLoc = R.getNameLoc();
 2121                                SourceLocation TemplateKWLoc,
 2136   SourceLocation Loc = NameInfo.getLoc();
 2179   SourceLocation NameLoc = NameInfo.getLoc();
 2445     SourceLocation Loc = SS.getBeginLoc();
 2493   SourceLocation Loc = Lookup.getNameLoc();
 2589   SourceLocation TemplateKWLoc;
 2720   SourceLocation FromLoc = FromRange.getBegin();
 2875 static bool CheckDeclInExpr(Sema &S, SourceLocation Loc, NamedDecl *D) {
 2941 diagnoseUncapturableValueReference(Sema &S, SourceLocation loc,
 2953   SourceLocation Loc = NameInfo.getLoc();
 3312   SourceLocation UDSuffixLoc =
 3332                                   QualType Ty, SourceLocation Loc) {
 3363 bool Sema::CheckLoopHintExpr(Expr *E, SourceLocation Loc) {
 3419     SourceLocation UDSuffixLoc =
 3444     SourceLocation TokLoc = Tok.getLocation();
 3734                                          SourceLocation Loc,
 3752                                            SourceLocation Loc,
 3782                                              SourceLocation Loc,
 3799 static void warnOnSizeofOnArrayDecay(Sema &S, SourceLocation Loc, QualType T,
 3925                                             SourceLocation OpLoc,
 4309                                          SourceLocation opLoc,
 4804 bool Sema::CheckCXXDefaultArgExpr(SourceLocation CallLoc, FunctionDecl *FD,
 4986   SourceLocation NameLoc = ME ? ME->getMemberLoc() : Fn->getBeginLoc();
 5030                               SourceLocation RParenLoc,
 5142 bool Sema::GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl,
 5263 Sema::CheckStaticArrayArgument(SourceLocation CallLoc,
 5545     Sema &S, const UnresolvedMemberExpr *const UME, SourceLocation CallLoc) {
 6150   SourceLocation FirstDesignator;
 6732   SourceLocation LiteralLParenLoc, LiteralRParenLoc;
 6832                                       SourceLocation QuestionLoc) {
 6857     SourceLocation loc = NullExpr->getExprLoc();
 6870 static bool checkCondition(Sema &S, Expr *Cond, SourceLocation QuestionLoc) {
 7234                                        SourceLocation QuestionLoc) {
 7254                               SourceLocation QuestionLoc) {
 7605 static void SuggestParentheses(Sema &Self, SourceLocation Loc,
 7608   SourceLocation EndLoc = Self.getLocForEndOfToken(ParenRange.getEnd());
 7703                                           SourceLocation OpLoc,
 8120 Sema::CheckAssignmentConstraints(SourceLocation Loc,
 8714 QualType Sema::InvalidOperands(SourceLocation Loc, ExprResult &LHS,
 8741 QualType Sema::InvalidLogicalVectorOperands(SourceLocation Loc, ExprResult &LHS,
 9208                                           SourceLocation Loc) {
 9318 static void diagnoseArithmeticOnTwoVoidPointers(Sema &S, SourceLocation Loc,
 9328 static void diagnoseArithmeticOnVoidPointer(Sema &S, SourceLocation Loc,
 9341 static void diagnoseArithmeticOnNullPointer(Sema &S, SourceLocation Loc,
 9352 static void diagnoseArithmeticOnTwoFunctionPointers(Sema &S, SourceLocation Loc,
 9368 static void diagnoseArithmeticOnFunctionPointer(Sema &S, SourceLocation Loc,
 9382 static bool checkArithmeticIncompletePointerType(Sema &S, SourceLocation Loc,
 9403 static bool checkArithmeticOpPointerOperand(Sema &S, SourceLocation Loc,
 9435 static bool checkArithmeticBinOpPointerOperands(Sema &S, SourceLocation Loc,
 9490 static void diagnoseStringPlusInt(Sema &Self, SourceLocation OpLoc,
 9510     SourceLocation EndLoc = Self.getLocForEndOfToken(RHSExpr->getEndLoc());
 9520 static void diagnoseStringPlusChar(Sema &Self, SourceLocation OpLoc,
 9560     SourceLocation EndLoc = Self.getLocForEndOfToken(RHSExpr->getEndLoc());
 9571 static void diagnosePointerIncompatibility(Sema &S, SourceLocation Loc,
10022 static void checkEnumComparison(Sema &S, SourceLocation Loc, Expr *LHS,
10051 static void diagnoseDistinctPointerComparison(Sema &S, SourceLocation Loc,
10062 static bool convertPointersToCompositeType(Sema &S, SourceLocation Loc,
10093 static void diagnoseFunctionPointerToVoidComparison(Sema &S, SourceLocation Loc,
10204 static void diagnoseObjCLiteralComparison(Sema &S, SourceLocation Loc,
10241     SourceLocation Start = LHS.get()->getBeginLoc();
10242     SourceLocation End = S.getLocForEndOfToken(RHS.get()->getEndLoc());
10274   SourceLocation FirstOpen = SubExpr->getBeginLoc();
10275   SourceLocation FirstClose = RHS.get()->getEndLoc();
10285   SourceLocation SecondOpen = LHS.get()->getBeginLoc();
10286   SourceLocation SecondClose = LHS.get()->getEndLoc();
10310 static void diagnoseTautologicalComparison(Sema &S, SourceLocation Loc,
10458                                              SourceLocation Loc) {
11514                                     SourceLocation Loc) {
11640                                          SourceLocation Loc, SourceRange Range,
11680                                          SourceLocation Loc) {
11702 static bool CheckForModifiableLvalue(Expr *E, SourceLocation Loc, Sema &S) {
11707   SourceLocation OrigLoc = Loc;
11831                                          SourceLocation Loc,
12029 void Sema::DiagnoseCommaOperator(const Expr *LHS, SourceLocation Loc) {
12117                                                SourceLocation OpLoc,
12273 static void diagnoseAddressOfInvalidType(Sema &S, SourceLocation Loc,
12521                                         SourceLocation OpLoc) {
12645                                    SourceLocation OpLoc, bool IsBuiltin) {
13033       SourceLocation RHSLocEnd = getLocForEndOfToken(RHS.get()->getEndLoc());
13078                                       SourceLocation OpLoc, Expr *LHSExpr,
13120 EmitDiagnosticForLogicalAndInLogicalOr(Sema &Self, SourceLocation OpLoc,
13148 static void DiagnoseLogicalAndInLogicalOrLHS(Sema &S, SourceLocation OpLoc,
13170 static void DiagnoseLogicalAndInLogicalOrRHS(Sema &S, SourceLocation OpLoc,
13188                                          SourceLocation OpLoc, Expr *SubExpr) {
13202 static void DiagnoseAdditionInShift(Sema &S, SourceLocation OpLoc,
13216 static void DiagnoseShiftCompare(Sema &S, SourceLocation OpLoc,
13245                                     SourceLocation OpLoc, Expr *LHSExpr,
14081 void Sema::ActOnBlockStart(SourceLocation CaretLoc, Scope *CurScope) {
14110 void Sema::ActOnBlockArguments(SourceLocation CaretLoc, Declarator &ParamInfo,
14227 void Sema::ActOnBlockError(SourceLocation CaretLoc, Scope *CurScope) {
14358         SourceLocation Loc = Cap.getLocation();
14632                                     SourceLocation Loc,
14848     void diagnoseNotICE(Sema &S, SourceLocation Loc, SourceRange SR) override {
14867     void diagnoseNotICE(Sema &S, SourceLocation Loc, SourceRange SR) override {
14875 void Sema::VerifyICEDiagnoser::diagnoseFold(Sema &S, SourceLocation Loc,
14884   SourceLocation DiagLoc = E->getBeginLoc();
14899       SemaDiagnosticBuilder diagnoseNotInt(Sema &S, SourceLocation Loc,
14905           Sema &S, SourceLocation Loc, QualType T) override {
14910           Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) override {
14921           Sema &S, SourceLocation Loc, QualType T) override {
14932           Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) override {
15303                                                   SourceLocation Loc) {
15312     void diagnose(Sema &S, SourceLocation Loc, QualType T) override {
15395 void Sema::MarkFunctionReferenced(SourceLocation Loc, FunctionDecl *Func,
15543         SourceLocation PointOfInstantiation = Func->getPointOfInstantiation();
15625 MarkVarDeclODRUsed(VarDecl *Var, SourceLocation Loc, Sema &SemaRef,
15633     SourceLocation &old = SemaRef.UndefinedButUsed[Var->getCanonicalDecl()];
15650                                              SourceLocation Loc,
15656 diagnoseUncapturableValueReference(Sema &S, SourceLocation loc,
15730                                  SourceLocation Loc,
15745                                  SourceLocation Loc,
15813                                  SourceLocation Loc,
15857         SourceLocation VarLoc = Var->getLocation();
15888                                     SourceLocation Loc,
15925                             SourceLocation Loc,
15931                             SourceLocation EllipsisLoc,
16022     VarDecl *Var, SourceLocation ExprLoc, TryCaptureKind Kind,
16023     SourceLocation EllipsisLoc, bool BuildAndDiagnose, QualType &CaptureType,
16245 bool Sema::tryCaptureVariable(VarDecl *Var, SourceLocation Loc,
16246                               TryCaptureKind Kind, SourceLocation EllipsisLoc) {
16254 bool Sema::NeedToCaptureVariable(VarDecl *Var, SourceLocation Loc) {
16262 QualType Sema::getCapturedDeclRefType(VarDecl *Var, SourceLocation Loc) {
16425     SourceLocation LBracketLoc = ASE->getBeginLoc(); // FIXME: Not stored.
16685 static void DoMarkVarDeclReferenced(Sema &SemaRef, SourceLocation Loc,
16739       SourceLocation PointOfInstantiation =
16860 void Sema::MarkVariableReferenced(SourceLocation Loc, VarDecl *Var) {
16864 static void MarkExprReferenced(Sema &SemaRef, SourceLocation Loc,
16925   SourceLocation Loc =
16940 void Sema::MarkAnyDeclReferenced(SourceLocation Loc, Decl *D,
16965     SourceLocation Loc;
16970     MarkReferencedDecls(Sema &S, SourceLocation Loc) : S(S), Loc(Loc) { }
16993 void Sema::MarkDeclarationsReferencedInType(SourceLocation Loc, QualType T) {
17091 bool Sema::DiagRuntimeBehavior(SourceLocation Loc, ArrayRef<const Stmt*> Stmts,
17134 bool Sema::DiagRuntimeBehavior(SourceLocation Loc, const Stmt *Statement,
17140 bool Sema::CheckCallReturnType(QualType ReturnType, SourceLocation Loc,
17161     void diagnose(Sema &S, SourceLocation Loc, QualType T) override {
17184   SourceLocation Loc;
17225   SourceLocation Open = E->getBeginLoc();
17226   SourceLocation Close = getLocForEndOfToken(E->getSourceRange().getEnd());
17243   SourceLocation parenLoc = ParenE->getBeginLoc();
17256       SourceLocation Loc = opE->getOperatorLoc();
17299 Sema::ConditionResult Sema::ActOnCondition(Scope *S, SourceLocation Loc,
17705         SourceLocation Loc = FD->getLocation();
17825   SourceLocation loc;
tools/clang/lib/Sema/SemaExprCXX.cpp
   49                                               SourceLocation NameLoc,
   83                                     SourceLocation NameLoc,
  132 ParsedType Sema::getDestructorName(SourceLocation TildeLoc,
  134                                    SourceLocation NameLoc,
  862 bool Sema::CheckCXXThrowOperand(SourceLocation ThrowLoc,
 1145 bool Sema::CheckCXXThisCapture(SourceLocation Loc, const bool Explicit,
 1268 Expr *Sema::BuildCXXThisExpr(SourceLocation Loc, QualType Type,
 1327   SourceLocation TyBeginLoc = TInfo->getTypeLoc().getBeginLoc();
 1600 static bool doesUsualArrayDeleteWantSize(Sema &S, SourceLocation loc,
 1754                                                 SourceLocation Loc) {
 1781   SourceLocation StartLoc = Range.getBegin();
 1935         SemaDiagnosticBuilder diagnoseNotInt(Sema &S, SourceLocation Loc,
 1942             Sema &S, SourceLocation Loc, QualType T) override {
 1948             Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) override {
 1959             Sema &S, SourceLocation Loc, QualType T) override {
 1969         SemaDiagnosticBuilder diagnoseConversion(Sema &S, SourceLocation Loc,
 2185 bool Sema::CheckAllocatedType(QualType AllocType, SourceLocation Loc,
 2344 bool Sema::FindAllocationFunctions(SourceLocation StartLoc, SourceRange Range,
 2852 FunctionDecl *Sema::FindUsualDeallocationFunction(SourceLocation StartLoc,
 2871 FunctionDecl *Sema::FindDeallocationFunctionForDestructor(SourceLocation Loc,
 2888 bool Sema::FindDeallocationFunction(SourceLocation StartLoc, CXXRecordDecl *RD,
 3158 DiagnoseMismatchedNewDelete(Sema &SemaRef, SourceLocation DeleteLoc,
 3160   SourceLocation EndOfDelete = SemaRef.getLocForEndOfToken(DeleteLoc);
 3165     SourceLocation RSquare = Lexer::findLocationAfterToken(
 3199 void Sema::AnalyzeDeleteExprMismatch(FieldDecl *Field, SourceLocation DeleteLoc,
 3256       SemaDiagnosticBuilder diagnoseNoMatch(Sema &S, SourceLocation Loc,
 3261       SemaDiagnosticBuilder diagnoseIncomplete(Sema &S, SourceLocation Loc,
 3266       SemaDiagnosticBuilder diagnoseExplicitConv(Sema &S, SourceLocation Loc,
 3278       SemaDiagnosticBuilder diagnoseAmbiguous(Sema &S, SourceLocation Loc,
 3289       SemaDiagnosticBuilder diagnoseConversion(Sema &S, SourceLocation Loc,
 3572 void Sema::CheckVirtualDtorCall(CXXDestructorDecl *dtor, SourceLocation Loc,
 3575                                 SourceLocation DtorLoc) {
 3618                                                    SourceLocation StmtLoc,
 4350                                                 SourceLocation Loc,
 4467                                Sema &Self, SourceLocation KeyLoc, ASTContext &C,
 4503                                    SourceLocation KeyLoc, QualType T) {
 4905                                     QualType RhsT, SourceLocation KeyLoc);
 4907 static bool evaluateTypeTrait(Sema &S, TypeTrait Kind, SourceLocation KWLoc,
 4909                               SourceLocation RParenLoc) {
 5071                                     QualType RhsT, SourceLocation KeyLoc) {
 5293                                            SourceLocation KeyLoc) {
 5569                                 SourceLocation QuestionLoc,
 6110 QualType Sema::FindCompositePointerType(SourceLocation Loc,
 6311     Conversion(Sema &S, SourceLocation Loc, Expr *&E1, Expr *&E2,
 6846                    tok::TokenKind& OpKind, SourceLocation OpLoc) {
 6926     SourceLocation DestructedTypeStart
 7507       SourceLocation ExprLoc = VarExpr->getExprLoc();
 8081 Sema::CheckMicrosoftIfExistsSymbol(Scope *S, SourceLocation KeywordLoc,
tools/clang/lib/Sema/SemaExprMember.cpp
  200   SourceLocation Loc = nameInfo.getLoc();
  236                                       SourceLocation TemplateKWLoc,
  300                         SourceLocation OpLoc, const IdentifierInfo *CompName,
  301                         SourceLocation CompLoc) {
  481                                bool IsArrow, SourceLocation OpLoc,
  483                                SourceLocation TemplateKWLoc,
  644                                      SourceLocation OpLoc, bool IsArrow,
  646                                      SourceLocation TemplateKWLoc,
  693   SourceLocation TypoLoc = R.getNameLoc();
  739                                    SourceLocation OpLoc, CXXScopeSpec &SS,
  741                                    SourceLocation TemplateKWLoc);
  745                                SourceLocation OpLoc, bool IsArrow,
  747                                SourceLocation TemplateKWLoc,
  804                                                SourceLocation loc,
  808                                                SourceLocation opLoc) {
  897     Expr *Base, bool IsArrow, SourceLocation OpLoc, const CXXScopeSpec *SS,
  898     SourceLocation TemplateKWLoc, ValueDecl *Member, DeclAccessPair FoundDecl,
  910     Expr *Base, bool IsArrow, SourceLocation OpLoc, NestedNameSpecifierLoc NNS,
  911     SourceLocation TemplateKWLoc, ValueDecl *Member, DeclAccessPair FoundDecl,
  941                       SourceLocation TemplateKWLoc) {
  961                                SourceLocation OpLoc, bool IsArrow,
  963                                SourceLocation TemplateKWLoc,
  989   SourceLocation MemberLoc = MemberNameInfo.getLoc();
 1106     SourceLocation Loc = R.getNameLoc();
 1247                                    SourceLocation OpLoc, CXXScopeSpec &SS,
 1249                                    SourceLocation TemplateKWLoc) {
 1261   SourceLocation MemberLoc = R.getNameLoc();
 1686                                        SourceLocation OpLoc,
 1689                                        SourceLocation TemplateKWLoc,
 1757                               SourceLocation OpLoc, const CXXScopeSpec &SS,
 1835                               SourceLocation TemplateKWLoc,
 1841   SourceLocation loc = R.getNameLoc();
 1851     SourceLocation Loc = R.getNameLoc();
tools/clang/lib/Sema/SemaExprObjC.cpp
   34 ExprResult Sema::ParseObjCStringLiteral(SourceLocation *AtLocs,
   46     SmallVector<SourceLocation, 8> StrLocs;
   80 ExprResult Sema::BuildObjCStringLiteral(SourceLocation AtLoc, StringLiteral *S){
  146 static bool validateBoxingMethod(Sema &S, SourceLocation Loc,
  196                                             SourceLocation Loc,
  218                                             SourceLocation Loc,
  241 static ObjCMethodDecl *getNSNumberFactoryMethod(Sema &S, SourceLocation Loc,
  314 ExprResult Sema::BuildObjCNumericLiteral(SourceLocation AtLoc, Expr *Number) {
  365 ExprResult Sema::ActOnObjCBoolLiteral(SourceLocation AtLoc,
  366                                       SourceLocation ValueLoc,
  511   SourceLocation Loc = SR.getBegin();
  765 ExprResult Sema::BuildObjCSubscriptExpression(SourceLocation RB, Expr *BaseExpr,
  796   SourceLocation Loc = SR.getBegin();
  901   SourceLocation Loc = SR.getBegin();
 1076 ExprResult Sema::BuildObjCEncodeExpression(SourceLocation AtLoc,
 1078                                       SourceLocation RParenLoc) {
 1106 ExprResult Sema::ParseObjCEncodeExpression(SourceLocation AtLoc,
 1107                                            SourceLocation EncodeLoc,
 1108                                            SourceLocation LParenLoc,
 1110                                            SourceLocation RParenLoc) {
 1122                                                SourceLocation AtLoc,
 1123                                                SourceLocation LParenLoc,
 1124                                                SourceLocation RParenLoc,
 1152 static void DiagnoseMismatchedSelectors(Sema &S, SourceLocation AtLoc,
 1154                                         SourceLocation LParenLoc,
 1155                                         SourceLocation RParenLoc,
 1178                                              SourceLocation AtLoc,
 1179                                              SourceLocation SelLoc,
 1180                                              SourceLocation LParenLoc,
 1181                                              SourceLocation RParenLoc,
 1239                                              SourceLocation AtLoc,
 1240                                              SourceLocation ProtoLoc,
 1241                                              SourceLocation LParenLoc,
 1242                                              SourceLocation ProtoIdLoc,
 1243                                              SourceLocation RParenLoc) {
 1264 ObjCMethodDecl *Sema::tryCaptureObjCSelf(SourceLocation Loc) {
 1511     SourceLocation loc = range.getBegin();
 1555     Selector Sel, ArrayRef<SourceLocation> SelectorLocs, ObjCMethodDecl *Method,
 1556     bool isClassMessage, bool isSuperMessage, SourceLocation lbrac,
 1557     SourceLocation rbrac, SourceRange RecRange, QualType &ReturnType,
 1559   SourceLocation SelLoc;
 1818                           Expr *BaseExpr, SourceLocation OpLoc,
 1820                           SourceLocation MemberLoc,
 1821                           SourceLocation SuperLoc, QualType SuperType,
 2001                           SourceLocation receiverNameLoc,
 2002                           SourceLocation propertyNameLoc) {
 2126                                                SourceLocation NameLoc,
 2223                                    SourceLocation SuperLoc,
 2225                                    SourceLocation LBracLoc,
 2226                                    ArrayRef<SourceLocation> SelectorLocs,
 2227                                    SourceLocation RBracLoc,
 2275                                            SourceLocation Loc,
 2293   SourceLocation MsgLoc = Msg->getExprLoc();
 2333 static void checkFoundationAPI(Sema &S, SourceLocation Loc,
 2449                                    SourceLocation SuperLoc,
 2452                                    SourceLocation LBracLoc,
 2453                                    ArrayRef<SourceLocation> SelectorLocs,
 2454                                    SourceLocation RBracLoc,
 2457   SourceLocation Loc = SuperLoc.isValid()? SuperLoc
 2464   ArrayRef<SourceLocation> SelectorSlotLocs;
 2469   SourceLocation SelLoc = SelectorSlotLocs.front();
 2594                                    SourceLocation LBracLoc,
 2595                                    ArrayRef<SourceLocation> SelectorLocs,
 2596                                    SourceLocation RBracLoc,
 2614                                               SourceLocation Loc,
 2672                                       SourceLocation SuperLoc,
 2675                                       SourceLocation LBracLoc,
 2676                                       ArrayRef<SourceLocation> SelectorLocs,
 2677                                       SourceLocation RBracLoc,
 2685   SourceLocation Loc = SuperLoc.isValid() ? SuperLoc : Receiver->getBeginLoc();
 2688   ArrayRef<SourceLocation> SelectorSlotLocs;
 2693   SourceLocation SelLoc = SelectorSlotLocs.front();
 3201     SourceLocation Loc = OSE->getAtLoc();
 3214                                       SourceLocation LBracLoc,
 3215                                       ArrayRef<SourceLocation> SelectorLocs,
 3216                                       SourceLocation RBracLoc,
 3548                                          SourceLocation afterLParen,
 3675   SourceLocation loc =
 3708   SourceLocation afterLParen = S.getLocForEndOfToken(castRange.getBegin());
 3709   SourceLocation noteLoc = afterLParen.isValid() ? afterLParen : loc;
 4024 bool Sema::checkObjCBridgeRelatedComponents(SourceLocation Loc,
 4098 Sema::CheckObjCBridgeRelatedConversions(SourceLocation Loc,
 4125         SourceLocation SrcExprEndLoc =
 4153         SourceLocation SrcExprEndLoc =
 4227           SourceLocation loc = (castRange.isValid() ? castRange.getBegin()
 4433 ExprResult Sema::BuildObjCBridgedCast(SourceLocation LParenLoc,
 4435                                       SourceLocation BridgeKeywordLoc,
 4545                                       SourceLocation LParenLoc,
 4547                                       SourceLocation BridgeKeywordLoc,
 4549                                       SourceLocation RParenLoc,
tools/clang/lib/Sema/SemaFixItUtils.cpp
   25                                                   SourceLocation Loc,
   59   const SourceLocation Begin = FullExpr->getSourceRange().getBegin();
   60   const SourceLocation End = S.getLocForEndOfToken(FullExpr->getSourceRange()
  162 static bool isMacroDefined(const Sema &S, SourceLocation Loc, StringRef Name) {
  168     const Type &T, SourceLocation Loc, const Sema &S) {
  200 Sema::getFixItZeroInitializerForType(QualType T, SourceLocation Loc) const {
  219 Sema::getFixItZeroLiteralForType(QualType T, SourceLocation Loc) const {
tools/clang/lib/Sema/SemaInit.cpp
  373   ExprResult PerformEmptyInit(SourceLocation Loc,
  468                                SourceLocation Loc);
  483 ExprResult InitListChecker::PerformEmptyInit(SourceLocation Loc,
  595                                               SourceLocation Loc) {
  641   SourceLocation Loc = ILE->getEndLoc();
 1071       SourceLocation EndLoc
 1799 static bool checkDestructorReference(QualType ElementType, SourceLocation Loc,
 2063     SourceLocation InitLoc = Init ? Init->getBeginLoc() : IList->getEndLoc();
 2093     SourceLocation InitLoc = Init->getBeginLoc();
 2484       SourceLocation Loc = D->getDotLoc();
 3111   SourceLocation Loc = Index->getBeginLoc();
 3127                                             SourceLocation EqualOrColonLoc,
 3764   SourceLocation Loc = S.getLocForEndOfToken(VD->getEndLoc());
 3863 ResolveConstructorOverload(Sema &S, SourceLocation DeclLoc,
 4231     SourceLocation DeclLoc = Initializer->getBeginLoc();
 4573   SourceLocation DeclLoc = Initializer->getBeginLoc();
 4702   SourceLocation DeclLoc = Initializer->getBeginLoc();
 5177   SourceLocation DeclLoc = Initializer->getBeginLoc();
 6046 static SourceLocation getInitializationLoc(const InitializedEntity &Entity,
 6117   SourceLocation Loc = getInitializationLoc(Entity, CurInit.get());
 6263   SourceLocation Loc = getInitializationLoc(Entity, CurInitExpr);
 6362                                  SourceLocation LBraceLoc,
 6363                                  SourceLocation RBraceLoc) {
 6371   SourceLocation Loc = (Kind.isCopyInit() && Kind.getEqualLoc().isValid())
 7332     SourceLocation DiagLoc = DiagRange.getBegin();
 7650   SourceLocation CallBegin = CE->getCallee()->getBeginLoc();
 7653   SourceLocation RParen = CE->getRParenLoc();
 7656   SourceLocation LParen;
 7657   SourceLocation ArgLoc = Arg->getBeginLoc();
 8053         SourceLocation Loc = CurInit.get()->getBeginLoc();
 8596 static bool DiagnoseUninitializedReference(Sema &S, SourceLocation Loc,
 8674     SourceLocation Loc = InitList->getBeginLoc();
 9598                                 SourceLocation EqualLoc,
tools/clang/lib/Sema/SemaLambda.cpp
  362                                            SourceLocation EndLoc,
  485                                         SourceLocation CaptureDefaultLoc,
  520 void Sema::ActOnLambdaExplicitTemplateParameterList(SourceLocation LAngleLoc,
  522                                                     SourceLocation RAngleLoc) {
  786     SourceLocation Loc, bool ByRef, SourceLocation EllipsisLoc,
  786     SourceLocation Loc, bool ByRef, SourceLocation EllipsisLoc,
  849 VarDecl *Sema::createLambdaInitCaptureVarDecl(SourceLocation Loc,
  851                                               SourceLocation EllipsisLoc,
  910   SourceLocation EndLoc;
 1022   SourceLocation PrevCaptureLoc
 1195     SourceLocation EllipsisLoc;
 1233 void Sema::ActOnLambdaError(SourceLocation StartLoc, Scope *CurScope,
 1304   SourceLocation Loc = IntroducerRange.getBegin();
 1451   SourceLocation Loc = IntroducerRange.getBegin();
 1468                                   SourceLocation ImplicitCaptureLoc,
 1481   SourceLocation Loc =
 1531 ExprResult Sema::ActOnLambdaExpr(SourceLocation StartLoc, Stmt *Body,
 1601   SourceLocation Loc = Capture.getLocation();
 1645 ExprResult Sema::BuildLambdaExpr(SourceLocation StartLoc, SourceLocation EndLoc,
 1645 ExprResult Sema::BuildLambdaExpr(SourceLocation StartLoc, SourceLocation EndLoc,
 1650   SourceLocation CaptureDefaultLoc = LSI->CaptureDefaultLoc;
 1685     SourceLocation PrevCaptureLoc = CurHasPreviousCapture ?
 1696       SourceLocation ImplicitCaptureLoc =
 1859 ExprResult Sema::BuildBlockForLambdaConversion(SourceLocation CurrentLocation,
 1860                                                SourceLocation ConvLocation,
tools/clang/lib/Sema/SemaLookup.cpp
  789     SourceLocation Loc = LR.getNameLoc();
  945                                                    SourceLocation Loc,
 2540   SourceLocation NameLoc = Result.getNameLoc();
 2613     AssociatedLookup(Sema &S, SourceLocation InstantiationLoc,
 2628     SourceLocation InstantiationLoc;
 2977     SourceLocation InstantiationLoc, ArrayRef<Expr *> Args,
 3022                                   SourceLocation Loc,
 3032                                        SourceLocation IdLoc,
 3074   SourceLocation LookupLoc = RD->getLocation();
 3524 void Sema::ArgumentDependentLookup(DeclarationName Name, SourceLocation Loc,
 4058 LabelDecl *Sema::LookupOrCreateLabel(IdentifierInfo *II, SourceLocation Loc,
 4059                                      SourceLocation GnuLabelLoc) {
 5298 void Sema::diagnoseMissingImport(SourceLocation Loc, NamedDecl *Decl,
 5329 void Sema::diagnoseMissingImport(SourceLocation UseLoc, NamedDecl *Decl,
 5330                                  SourceLocation DeclLoc,
 5501 void Sema::ActOnPragmaDump(Scope *S, SourceLocation IILoc, IdentifierInfo *II) {
tools/clang/lib/Sema/SemaModule.cpp
   23                                      SourceLocation ImportLoc, DeclContext *DC,
   25   SourceLocation ExternCLoc;
   60 Sema::ActOnGlobalModuleFragmentDecl(SourceLocation ModuleLoc) {
   93 Sema::ActOnModuleDecl(SourceLocation StartLoc, SourceLocation ModuleLoc,
   93 Sema::ActOnModuleDecl(SourceLocation StartLoc, SourceLocation ModuleLoc,
  150     SourceLocation BeginLoc =
  207     std::pair<IdentifierInfo *, SourceLocation> ModuleNameLoc(
  248 Sema::ActOnPrivateModuleFragmentDecl(SourceLocation ModuleLoc,
  249                                      SourceLocation PrivateLoc) {
  309 DeclResult Sema::ActOnModuleImport(SourceLocation StartLoc,
  310                                    SourceLocation ExportLoc,
  311                                    SourceLocation ImportLoc,
  314   std::pair<IdentifierInfo *, SourceLocation> ModuleNameLoc;
  343 DeclResult Sema::ActOnModuleImport(SourceLocation StartLoc,
  344                                    SourceLocation ExportLoc,
  345                                    SourceLocation ImportLoc,
  366   SmallVector<SourceLocation, 2> IdentifierLocs;
  406 void Sema::ActOnModuleInclude(SourceLocation DirectiveLoc, Module *Mod) {
  411 void Sema::BuildModuleInclude(SourceLocation DirectiveLoc, Module *Mod) {
  440 void Sema::ActOnModuleBegin(SourceLocation DirectiveLoc, Module *Mod) {
  464 void Sema::ActOnModuleEnd(SourceLocation EomLoc, Module *Mod) {
  479   SourceLocation DirectiveLoc;
  504 void Sema::createImplicitModuleImportForErrorRecovery(SourceLocation Loc,
  525 Decl *Sema::ActOnStartExportDecl(Scope *S, SourceLocation ExportLoc,
  526                                  SourceLocation LBraceLoc) {
  586                                      SourceLocation BlockStart);
  635                                     SourceLocation BlockStart) {
  643 static bool checkExportedDecl(Sema &S, Decl *D, SourceLocation BlockStart) {
  683                                      SourceLocation BlockStart) {
  691 Decl *Sema::ActOnFinishExportDecl(Scope *S, Decl *D, SourceLocation RBraceLoc) {
  699     SourceLocation BlockStart =
tools/clang/lib/Sema/SemaObjCProperty.cpp
  177 Decl *Sema::ActOnProperty(Scope *S, SourceLocation AtLoc,
  178                           SourceLocation LParenLoc,
  314                                  SourceLocation LParenLoc, SourceLocation &Loc) {
  314                                  SourceLocation LParenLoc, SourceLocation &Loc) {
  413                                      SourceLocation AtLoc,
  414                                      SourceLocation LParenLoc,
  417                                      SourceLocation GetterNameLoc,
  419                                      SourceLocation SetterNameLoc,
  566                                            SourceLocation AtLoc,
  567                                            SourceLocation LParenLoc,
  570                                            SourceLocation GetterNameLoc,
  572                                            SourceLocation SetterNameLoc,
  611     SourceLocation StarLoc = TInfo->getTypeLoc().getEndLoc();
  616     SourceLocation TLoc = TInfo->getTypeLoc().getBeginLoc();
  714 static void checkARCPropertyImpl(Sema &S, SourceLocation propertyImplLoc,
  833 SelectPropertyForSynthesisFromProtocols(Sema &S, SourceLocation AtLoc,
 1045                                   SourceLocation AtLoc,
 1046                                   SourceLocation PropertyLoc,
 1050                                   SourceLocation PropertyIvarLoc,
 1061   SourceLocation PropertyDiagLoc = PropertyLoc;
 1127         SourceLocation readonlyLoc;
 1130           SourceLocation endLoc =
 1656                                             SourceLocation Loc) {
 1835                                        SourceLocation AtEnd) {
 1927                                        SourceLocation AtEnd) {
 2099         SourceLocation loc = propertyImpl->getLocation();
 2173         SourceLocation MethodLoc =
 2183           SourceLocation AfterLParen =
 2192           SourceLocation startLoc =
 2228         SourceLocation noteLoc = PD->getLocation();
 2229         SourceLocation fixItLoc;
 2382     SourceLocation Loc = property->getLocation();
 2442       SourceLocation Loc = property->getLocation();
 2539                                        SourceLocation Loc,
tools/clang/lib/Sema/SemaOpenMP.cpp
   66     SourceLocation ImplicitDSALoc;
   70                SourceLocation ImplicitDSALoc)
  126     SourceLocation DefaultAttrLoc;
  128     SourceLocation DefaultMapAttrLoc;
  132     SourceLocation ConstructLoc;
  148     SourceLocation InnerTeamsRegionLoc;
  156                  Scope *CurScope, SourceLocation Loc)
  264   SmallVector<SourceLocation, 2> TargetLocations;
  309             Scope *CurScope, SourceLocation Loc) {
  511           OpenMPDirectiveKind, const DeclarationNameInfo &, SourceLocation)>
  576   void addTargetDirLocation(SourceLocation LocStart) {
  581   ArrayRef<SourceLocation> getEncounteredTargetLocs() const {
  586   void setDefaultDSANone(SourceLocation Loc) {
  591   void setDefaultDSAShared(SourceLocation Loc) {
  596   void setDefaultDMAToFromScalar(SourceLocation Loc) {
  605   SourceLocation getDefaultDSALocation() const {
  616   SourceLocation getDefaultDMALocation() const {
  705   void setParentTeamsRegionLoc(SourceLocation TeamsRegionLoc) {
  714   SourceLocation getInnerTeamsRegionLoc() const {
  723   SourceLocation getConstructLoc() const {
 1100 static VarDecl *buildVarDecl(Sema &SemaRef, SourceLocation Loc, QualType Type,
 1122                                      SourceLocation Loc,
 1263                                       SourceLocation ELoc,
 1526                                   const DeclarationNameInfo &, SourceLocation)>
 1569 Sema::DeviceDiagBuilder Sema::diagIfOpenMPDeviceCode(SourceLocation Loc,
 1595 Sema::DeviceDiagBuilder Sema::diagIfOpenMPHostCode(SourceLocation Loc,
 1618 void Sema::checkOpenMPDeviceFunction(SourceLocation Loc, FunctionDecl *Callee,
 1661 void Sema::checkOpenMPHostFunction(SourceLocation Loc, FunctionDecl *Callee,
 2097     for (const std::pair<CanonicalDeclPtr<FunctionDecl>, SourceLocation>
 2132                                Scope *CurScope, SourceLocation Loc) {
 2383 Sema::ActOnOpenMPThreadprivateDirective(SourceLocation Loc,
 2423 Sema::CheckOMPThreadPrivateDecl(SourceLocation Loc, ArrayRef<Expr *> VarList) {
 2428     SourceLocation ILoc = DE->getExprLoc();
 2559     SourceLocation AllocatorLoc =
 2563     SourceLocation PrevAllocatorLoc =
 2597     SourceLocation Loc, ArrayRef<Expr *> VarList,
 2665 Sema::ActOnOpenMPRequiresDirective(SourceLocation Loc,
 2680 OMPRequiresDecl *Sema::CheckOMPRequiresDecl(SourceLocation Loc,
 2685   ArrayRef<SourceLocation> TargetLocations =
 2696         for (SourceLocation TargetLoc : TargetLocations) {
 2731   auto ReportLoc = D->getLocation();
 2819       SourceLocation ELoc = E->getExprLoc();
 2950       SourceLocation ELoc = E->getExprLoc();
 3754                               SourceLocation StartLoc) {
 3772                                   SourceLocation StartLoc) {
 3867       SourceLocation PreviousCriticalLoc;
 3996   SmallVector<SourceLocation, 4> NameModifierLoc;
 4063     for (SourceLocation Loc : NameModifierLoc) {
 4072 getPrivateItem(Sema &S, Expr *&RefExpr, SourceLocation &ELoc,
 4187       SourceLocation ELoc;
 4213       SourceLocation ELoc;
 4237     Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) {
 4237     Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) {
 5197 void Sema::markOpenMPDeclareVariantFuncsReferenced(SourceLocation Loc,
 5218                                               SourceLocation StartLoc,
 5219                                               SourceLocation EndLoc) {
 5295   SourceLocation DefaultLoc;
 5297   SourceLocation ConditionLoc;
 5341                               SourceLocation DefaultLoc)
 5391                        SourceLocation Loc, Expr *Inc = nullptr,
 5418              SourceRange SR, SourceLocation SL);
 5458                                         SourceLocation SL) {
 5481     SourceLocation StepLoc = NewStep->getBeginLoc();
 5762   SourceLocation CondLoc = S->getBeginLoc();
 6407     llvm::MapVector<const Expr *, DeclRefExpr *> &Captures, SourceLocation Loc,
 6465 void Sema::ActOnOpenMPLoopInitialization(SourceLocation ForLoc, Stmt *Init) {
 7059     SourceLocation Loc = N->getExprLoc();
 7133   SourceLocation InitLoc = IterSpaces[0].InitSrcRange.getBegin();
 7265   SourceLocation CondLoc = AStmt->getBeginLoc();
 7309   SourceLocation IncLoc = AStmt->getBeginLoc();
 7380   SourceLocation DistIncLoc = AStmt->getBeginLoc();
 7398     SourceLocation DistEUBLoc = AStmt->getBeginLoc();
 7456       SourceLocation UpdLoc = IS.IncSrcRange.getBegin();
 7646                                SourceLocation StartLoc, SourceLocation EndLoc,
 7646                                SourceLocation StartLoc, SourceLocation EndLoc,
 7685                               SourceLocation StartLoc, SourceLocation EndLoc,
 7685                               SourceLocation StartLoc, SourceLocation EndLoc,
 7720     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 7721     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
 7760                                               SourceLocation StartLoc,
 7761                                               SourceLocation EndLoc) {
 7797                                              SourceLocation StartLoc,
 7798                                              SourceLocation EndLoc) {
 7813                                             SourceLocation StartLoc,
 7814                                             SourceLocation EndLoc) {
 7843                                             SourceLocation StartLoc,
 7844                                             SourceLocation EndLoc) {
 7857     Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) {
 7857     Stmt *AStmt, SourceLocation StartLoc, SourceLocation EndLoc) {
 7865   SourceLocation HintLoc;
 7915     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 7916     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
 7959     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 7960     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
 8003                                            Stmt *AStmt, SourceLocation StartLoc,
 8004                                            SourceLocation EndLoc) {
 8041                                           Stmt *AStmt, SourceLocation StartLoc,
 8042                                           SourceLocation EndLoc) {
 8060 StmtResult Sema::ActOnOpenMPTaskyieldDirective(SourceLocation StartLoc,
 8061                                                SourceLocation EndLoc) {
 8065 StmtResult Sema::ActOnOpenMPBarrierDirective(SourceLocation StartLoc,
 8066                                              SourceLocation EndLoc) {
 8070 StmtResult Sema::ActOnOpenMPTaskwaitDirective(SourceLocation StartLoc,
 8071                                               SourceLocation EndLoc) {
 8077                                                SourceLocation StartLoc,
 8078                                                SourceLocation EndLoc) {
 8092                                            SourceLocation StartLoc,
 8093                                            SourceLocation EndLoc) {
 8100                                              SourceLocation StartLoc,
 8101                                              SourceLocation EndLoc) {
 8156       SourceLocation ErrLoc = TC ? TC->getBeginLoc() : StartLoc;
 8205   SourceLocation NoteLoc;
 8218   SourceLocation OpLoc;
 8260   SourceLocation ErrorLoc, NoteLoc;
 8328   SourceLocation ErrorLoc, NoteLoc;
 8419                                             SourceLocation StartLoc,
 8420                                             SourceLocation EndLoc) {
 8431   SourceLocation AtomicKindLoc;
 8488     SourceLocation ErrorLoc, NoteLoc;
 8551     SourceLocation ErrorLoc, NoteLoc;
 8635     SourceLocation ErrorLoc, NoteLoc;
 8852                                             SourceLocation StartLoc,
 8853                                             SourceLocation EndLoc) {
 8917                                          Stmt *AStmt, SourceLocation StartLoc,
 8918                                          SourceLocation EndLoc) {
 8947     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 8948     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
 9015                                                 SourceLocation StartLoc,
 9016                                                 SourceLocation EndLoc) {
 9039                                           SourceLocation StartLoc,
 9040                                           SourceLocation EndLoc, Stmt *AStmt) {
 9076                                          SourceLocation StartLoc,
 9077                                          SourceLocation EndLoc, Stmt *AStmt) {
 9112                                                   SourceLocation StartLoc,
 9113                                                   SourceLocation EndLoc,
 9145                                            Stmt *AStmt, SourceLocation StartLoc,
 9146                                            SourceLocation EndLoc) {
 9166 Sema::ActOnOpenMPCancellationPointDirective(SourceLocation StartLoc,
 9167                                             SourceLocation EndLoc,
 9182                                             SourceLocation StartLoc,
 9183                                             SourceLocation EndLoc,
 9250     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9251     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
 9286     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9287     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
 9335     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9336     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
 9371     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9372     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
 9420     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9421     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
 9475     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9476     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
 9500     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9501     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
 9544     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9545     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
 9601     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9602     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
 9657     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9658     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
 9712     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9713     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
 9768     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9769     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
 9813     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9814     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
 9875     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9876     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
 9937     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
 9938     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
 9987                                                  SourceLocation StartLoc,
 9988                                                  SourceLocation EndLoc) {
10017     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
10018     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
10060     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
10061     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
10115     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
10116     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
10174     ArrayRef<OMPClause *> Clauses, Stmt *AStmt, SourceLocation StartLoc,
10175     SourceLocation EndLoc, VarsWithInheritedDSAType &VarsWithImplicitDSA) {
10231                                              SourceLocation StartLoc,
10232                                              SourceLocation LParenLoc,
10233                                              SourceLocation EndLoc) {
10973                                      Expr *Condition, SourceLocation StartLoc,
10974                                      SourceLocation LParenLoc,
10975                                      SourceLocation NameModifierLoc,
10976                                      SourceLocation ColonLoc,
10977                                      SourceLocation EndLoc) {
11007                                         SourceLocation StartLoc,
11008                                         SourceLocation LParenLoc,
11009                                         SourceLocation EndLoc) {
11045     SemaDiagnosticBuilder diagnoseNotInt(Sema &S, SourceLocation Loc,
11049     SemaDiagnosticBuilder diagnoseIncomplete(Sema &S, SourceLocation Loc,
11053     SemaDiagnosticBuilder diagnoseExplicitConv(Sema &S, SourceLocation Loc,
11063     SemaDiagnosticBuilder diagnoseAmbiguous(Sema &S, SourceLocation Loc,
11072     SemaDiagnosticBuilder diagnoseConversion(Sema &, SourceLocation, QualType,
11088     SourceLocation Loc = ValExpr->getExprLoc();
11121                                              SourceLocation StartLoc,
11122                                              SourceLocation LParenLoc,
11123                                              SourceLocation EndLoc) {
11178 OMPClause *Sema::ActOnOpenMPSafelenClause(Expr *Len, SourceLocation StartLoc,
11179                                           SourceLocation LParenLoc,
11180                                           SourceLocation EndLoc) {
11191 OMPClause *Sema::ActOnOpenMPSimdlenClause(Expr *Len, SourceLocation StartLoc,
11192                                           SourceLocation LParenLoc,
11193                                           SourceLocation EndLoc) {
11205 static bool findOMPAllocatorHandleT(Sema &S, SourceLocation Loc,
11248 OMPClause *Sema::ActOnOpenMPAllocatorClause(Expr *A, SourceLocation StartLoc,
11249                                             SourceLocation LParenLoc,
11250                                             SourceLocation EndLoc) {
11270                                            SourceLocation StartLoc,
11271                                            SourceLocation LParenLoc,
11272                                            SourceLocation EndLoc) {
11286 OMPClause *Sema::ActOnOpenMPOrderedClause(SourceLocation StartLoc,
11287                                           SourceLocation EndLoc,
11288                                           SourceLocation LParenLoc,
11312     OpenMPClauseKind Kind, unsigned Argument, SourceLocation ArgumentLoc,
11313     SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) {
11313     SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) {
11313     SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) {
11416                                           SourceLocation KindKwLoc,
11417                                           SourceLocation StartLoc,
11418                                           SourceLocation LParenLoc,
11419                                           SourceLocation EndLoc) {
11445                                            SourceLocation KindKwLoc,
11446                                            SourceLocation StartLoc,
11447                                            SourceLocation LParenLoc,
11448                                            SourceLocation EndLoc) {
11461     OpenMPAtomicDefaultMemOrderClauseKind Kind, SourceLocation KindKwLoc,
11462     SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) {
11462     SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) {
11462     SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) {
11477     SourceLocation StartLoc, SourceLocation LParenLoc,
11477     SourceLocation StartLoc, SourceLocation LParenLoc,
11478     ArrayRef<SourceLocation> ArgumentLoc, SourceLocation DelimLoc,
11478     ArrayRef<SourceLocation> ArgumentLoc, SourceLocation DelimLoc,
11479     SourceLocation EndLoc) {
11575                                    SourceLocation M1Loc, SourceLocation M2Loc) {
11575                                    SourceLocation M1Loc, SourceLocation M2Loc) {
11597     OpenMPScheduleClauseKind Kind, Expr *ChunkSize, SourceLocation StartLoc,
11598     SourceLocation LParenLoc, SourceLocation M1Loc, SourceLocation M2Loc,
11598     SourceLocation LParenLoc, SourceLocation M1Loc, SourceLocation M2Loc,
11598     SourceLocation LParenLoc, SourceLocation M1Loc, SourceLocation M2Loc,
11599     SourceLocation KindLoc, SourceLocation CommaLoc, SourceLocation EndLoc) {
11599     SourceLocation KindLoc, SourceLocation CommaLoc, SourceLocation EndLoc) {
11599     SourceLocation KindLoc, SourceLocation CommaLoc, SourceLocation EndLoc) {
11647       SourceLocation ChunkSizeLoc = ChunkSize->getBeginLoc();
11683                                    SourceLocation StartLoc,
11684                                    SourceLocation EndLoc) {
11784 OMPClause *Sema::ActOnOpenMPNowaitClause(SourceLocation StartLoc,
11785                                          SourceLocation EndLoc) {
11790 OMPClause *Sema::ActOnOpenMPUntiedClause(SourceLocation StartLoc,
11791                                          SourceLocation EndLoc) {
11795 OMPClause *Sema::ActOnOpenMPMergeableClause(SourceLocation StartLoc,
11796                                             SourceLocation EndLoc) {
11800 OMPClause *Sema::ActOnOpenMPReadClause(SourceLocation StartLoc,
11801                                        SourceLocation EndLoc) {
11805 OMPClause *Sema::ActOnOpenMPWriteClause(SourceLocation StartLoc,
11806                                         SourceLocation EndLoc) {
11810 OMPClause *Sema::ActOnOpenMPUpdateClause(SourceLocation StartLoc,
11811                                          SourceLocation EndLoc) {
11815 OMPClause *Sema::ActOnOpenMPCaptureClause(SourceLocation StartLoc,
11816                                           SourceLocation EndLoc) {
11820 OMPClause *Sema::ActOnOpenMPSeqCstClause(SourceLocation StartLoc,
11821                                          SourceLocation EndLoc) {
11825 OMPClause *Sema::ActOnOpenMPThreadsClause(SourceLocation StartLoc,
11826                                           SourceLocation EndLoc) {
11830 OMPClause *Sema::ActOnOpenMPSIMDClause(SourceLocation StartLoc,
11831                                        SourceLocation EndLoc) {
11835 OMPClause *Sema::ActOnOpenMPNogroupClause(SourceLocation StartLoc,
11836                                           SourceLocation EndLoc) {
11840 OMPClause *Sema::ActOnOpenMPUnifiedAddressClause(SourceLocation StartLoc,
11841                                                  SourceLocation EndLoc) {
11845 OMPClause *Sema::ActOnOpenMPUnifiedSharedMemoryClause(SourceLocation StartLoc,
11846                                                       SourceLocation EndLoc) {
11850 OMPClause *Sema::ActOnOpenMPReverseOffloadClause(SourceLocation StartLoc,
11851                                                  SourceLocation EndLoc) {
11855 OMPClause *Sema::ActOnOpenMPDynamicAllocatorsClause(SourceLocation StartLoc,
11856                                                     SourceLocation EndLoc) {
11862     const OMPVarListLocTy &Locs, SourceLocation ColonLoc,
11867     ArrayRef<SourceLocation> MapTypeModifiersLoc, OpenMPMapClauseKind MapType,
11868     bool IsMapTypeImplicit, SourceLocation DepLinMapLoc) {
11869   SourceLocation StartLoc = Locs.StartLoc;
11870   SourceLocation LParenLoc = Locs.LParenLoc;
11871   SourceLocation EndLoc = Locs.EndLoc;
12012                                           SourceLocation StartLoc,
12013                                           SourceLocation LParenLoc,
12014                                           SourceLocation EndLoc) {
12019     SourceLocation ELoc;
12152   SourceLocation SavedLoc;
12156   DiagsUninitializedSeveretyRAII(DiagnosticsEngine &Diags, SourceLocation Loc,
12172                                                SourceLocation StartLoc,
12173                                                SourceLocation LParenLoc,
12174                                                SourceLocation EndLoc) {
12181   SourceLocation ImplicitClauseLoc = DSAStack->getConstructLoc();
12185     SourceLocation ELoc;
12450                                               SourceLocation StartLoc,
12451                                               SourceLocation LParenLoc,
12452                                               SourceLocation EndLoc) {
12461     SourceLocation ELoc;
12611                                          SourceLocation StartLoc,
12612                                          SourceLocation LParenLoc,
12613                                          SourceLocation EndLoc) {
12617     SourceLocation ELoc;
12745                         SourceLocation Loc, QualType Ty,
13052     ArrayRef<Expr *> VarList, SourceLocation StartLoc, SourceLocation LParenLoc,
13052     ArrayRef<Expr *> VarList, SourceLocation StartLoc, SourceLocation LParenLoc,
13053     SourceLocation ColonLoc, SourceLocation EndLoc,
13053     SourceLocation ColonLoc, SourceLocation EndLoc,
13160     SourceLocation ELoc;
13684     ArrayRef<Expr *> VarList, SourceLocation StartLoc, SourceLocation LParenLoc,
13684     ArrayRef<Expr *> VarList, SourceLocation StartLoc, SourceLocation LParenLoc,
13685     SourceLocation ColonLoc, SourceLocation EndLoc,
13685     SourceLocation ColonLoc, SourceLocation EndLoc,
13704     ArrayRef<Expr *> VarList, SourceLocation StartLoc, SourceLocation LParenLoc,
13704     ArrayRef<Expr *> VarList, SourceLocation StartLoc, SourceLocation LParenLoc,
13705     SourceLocation ColonLoc, SourceLocation EndLoc,
13705     SourceLocation ColonLoc, SourceLocation EndLoc,
13724     ArrayRef<Expr *> VarList, SourceLocation StartLoc, SourceLocation LParenLoc,
13724     ArrayRef<Expr *> VarList, SourceLocation StartLoc, SourceLocation LParenLoc,
13725     SourceLocation ColonLoc, SourceLocation EndLoc,
13725     SourceLocation ColonLoc, SourceLocation EndLoc,
13744                                      SourceLocation LinLoc) {
13753 bool Sema::CheckOpenMPLinearDecl(const ValueDecl *D, SourceLocation ELoc,
13795     ArrayRef<Expr *> VarList, Expr *Step, SourceLocation StartLoc,
13796     SourceLocation LParenLoc, OpenMPLinearClauseKind LinKind,
13797     SourceLocation LinLoc, SourceLocation ColonLoc, SourceLocation EndLoc) {
13797     SourceLocation LinLoc, SourceLocation ColonLoc, SourceLocation EndLoc) {
13797     SourceLocation LinLoc, SourceLocation ColonLoc, SourceLocation EndLoc) {
13807     SourceLocation ELoc;
13892     SourceLocation StepLoc = Step->getBeginLoc();
13948     SourceLocation ELoc;
14033     ArrayRef<Expr *> VarList, Expr *Alignment, SourceLocation StartLoc,
14034     SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc) {
14034     SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc) {
14034     SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc) {
14038     SourceLocation ELoc;
14107                                          SourceLocation StartLoc,
14108                                          SourceLocation LParenLoc,
14109                                          SourceLocation EndLoc) {
14125     SourceLocation ELoc = RefExpr->getExprLoc();
14201                                               SourceLocation StartLoc,
14202                                               SourceLocation LParenLoc,
14203                                               SourceLocation EndLoc) {
14210     SourceLocation ELoc;
14314                                         SourceLocation StartLoc,
14315                                         SourceLocation LParenLoc,
14316                                         SourceLocation EndLoc) {
14325                               SourceLocation DepLoc, SourceLocation ColonLoc,
14325                               SourceLocation DepLoc, SourceLocation ColonLoc,
14326                               ArrayRef<Expr *> VarList, SourceLocation StartLoc,
14327                               SourceLocation LParenLoc, SourceLocation EndLoc) {
14327                               SourceLocation LParenLoc, SourceLocation EndLoc) {
14363     SourceLocation ELoc = RefExpr->getExprLoc();
14387       SourceLocation OOLoc;
14409       SourceLocation ELoc;
14489 OMPClause *Sema::ActOnOpenMPDeviceClause(Expr *Device, SourceLocation StartLoc,
14490                                          SourceLocation LParenLoc,
14491                                          SourceLocation EndLoc) {
14515 static bool checkTypeMappable(SourceLocation SL, SourceRange SR, Sema &SemaRef,
14629   SourceLocation ELoc = E->getExprLoc();
14881   SourceLocation ELoc = E->getExprLoc();
14995         SourceLocation DerivedLoc =
15174   SourceLocation Loc = MapperId.getLoc();
15258     MappableVarListInfo &MVLI, SourceLocation StartLoc,
15290     SourceLocation ELoc = RE->getExprLoc();
15507     ArrayRef<SourceLocation> MapTypeModifiersLoc,
15509     OpenMPMapClauseKind MapType, bool IsMapTypeImplicit, SourceLocation MapLoc,
15510     SourceLocation ColonLoc, ArrayRef<Expr *> VarList,
15515   SourceLocation ModifiersLoc[OMPMapClause::NumberOfModifiers];
15546 QualType Sema::ActOnOpenMPDeclareReductionType(SourceLocation TyLoc,
15580     ArrayRef<std::pair<QualType, SourceLocation>> ReductionTypes,
15591   llvm::DenseMap<QualType, SourceLocation> PreviousRedeclTypes;
15817 QualType Sema::ActOnOpenMPDeclareMapperType(SourceLocation TyLoc,
15835     SourceLocation StartLoc, DeclarationName VN, AccessSpecifier AS,
15843   llvm::DenseMap<QualType, SourceLocation> PreviousRedeclTypes;
15914                                                     SourceLocation StartLoc,
15941                                            SourceLocation StartLoc,
15942                                            SourceLocation LParenLoc,
15943                                            SourceLocation EndLoc) {
15968                                               SourceLocation StartLoc,
15969                                               SourceLocation LParenLoc,
15970                                               SourceLocation EndLoc) {
15995                                            SourceLocation StartLoc,
15996                                            SourceLocation LParenLoc,
15997                                            SourceLocation EndLoc) {
16015                                             SourceLocation StartLoc,
16016                                             SourceLocation LParenLoc,
16017                                             SourceLocation EndLoc) {
16036                                            SourceLocation StartLoc,
16037                                            SourceLocation LParenLoc,
16038                                            SourceLocation EndLoc) {
16056 OMPClause *Sema::ActOnOpenMPHintClause(Expr *Hint, SourceLocation StartLoc,
16057                                        SourceLocation LParenLoc,
16058                                        SourceLocation EndLoc) {
16070     OpenMPDistScheduleClauseKind Kind, Expr *ChunkSize, SourceLocation StartLoc,
16071     SourceLocation LParenLoc, SourceLocation KindLoc, SourceLocation CommaLoc,
16071     SourceLocation LParenLoc, SourceLocation KindLoc, SourceLocation CommaLoc,
16071     SourceLocation LParenLoc, SourceLocation KindLoc, SourceLocation CommaLoc,
16072     SourceLocation EndLoc) {
16088       SourceLocation ChunkSizeLoc = ChunkSize->getBeginLoc();
16125     SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation MLoc,
16125     SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation MLoc,
16125     SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation MLoc,
16126     SourceLocation KindLoc, SourceLocation EndLoc) {
16126     SourceLocation KindLoc, SourceLocation EndLoc) {
16130     SourceLocation Loc;
16152 bool Sema::ActOnStartOpenMPDeclareTargetDirective(SourceLocation Loc) {
16212     NamedDecl *ND, SourceLocation Loc, OMPDeclareTargetDeclAttr::MapTypeTy MT,
16246 static void checkDeclInTargetContext(SourceLocation SL, SourceRange SR,
16278 static bool checkValueDeclInTarget(SourceLocation SL, SourceRange SR,
16287                                             SourceLocation IdLoc) {
16291   SourceLocation SL = E ? E->getBeginLoc() : D->getLocation();
16392     SourceLocation ELoc;
16474     SourceLocation ELoc;
16552     Expr *Allocator, ArrayRef<Expr *> VarList, SourceLocation StartLoc,
16553     SourceLocation ColonLoc, SourceLocation LParenLoc, SourceLocation EndLoc) {
16553     SourceLocation ColonLoc, SourceLocation LParenLoc, SourceLocation EndLoc) {
16553     SourceLocation ColonLoc, SourceLocation LParenLoc, SourceLocation EndLoc) {
16584     SourceLocation ELoc;
tools/clang/lib/Sema/SemaOverload.cpp
   51                       SourceLocation Loc = SourceLocation(),
   95 CompareStandardConversionSequences(Sema &S, SourceLocation Loc,
  105 CompareDerivedToBaseConversions(Sema &S, SourceLocation Loc,
 3615 CompareImplicitConversionSequences(Sema &S, SourceLocation Loc,
 3822 CompareStandardConversionSequences(Sema &S, SourceLocation Loc,
 4150 CompareDerivedToBaseConversions(Sema &S, SourceLocation Loc,
 4374 Sema::CompareReferenceRelationship(SourceLocation Loc,
 4466                          QualType DeclType, SourceLocation DeclLoc,
 4595                  SourceLocation DeclLoc,
 5153                                   SourceLocation Loc,
 5166 TryObjectArgumentInitialization(Sema &S, SourceLocation Loc, QualType FromType,
 5708 diagnoseAmbiguousConversion(Sema &SemaRef, SourceLocation Loc, Expr *From,
 5726 diagnoseNoViableConversion(Sema &SemaRef, SourceLocation Loc, Expr *&From,
 5766 static bool recordConversion(Sema &SemaRef, SourceLocation Loc, Expr *&From,
 5795     Sema &SemaRef, SourceLocation Loc, Expr *From,
 5853     SourceLocation Loc, Expr *From, ContextualImplicitConverter &Converter) {
 5890     void diagnose(Sema &S, SourceLocation Loc, QualType T) override {
 6186       SourceLocation Loc = Args.front()->getExprLoc();
 6493                                         bool ArgDependent, SourceLocation Loc,
 6534                                                SourceLocation Loc) {
 6550                                                  SourceLocation Loc) {
 7429                                        SourceLocation OpLoc,
 7594                              SourceLocation Loc,
 7748                                                SourceLocation Loc,
 8933                                         SourceLocation OpLoc,
 9129                                            SourceLocation Loc,
 9283     SourceLocation Loc, OverloadCandidateSet::CandidateSetKind Kind) {
 9568     SourceLocation Loc, const NamedDecl *D, ArrayRef<const NamedDecl *> Equiv) {
 9593 OverloadCandidateSet::BestViableFunction(Sema &S, SourceLocation Loc,
 9798                                               SourceLocation Loc) {
 9839                                              SourceLocation Loc) {
 9895                                  SourceLocation CaretLoc,
10750                                          SourceLocation OpLoc,
10768 static void NoteAmbiguousUserConversions(Sema &S, SourceLocation OpLoc,
10779 static SourceLocation GetLocationForCandidate(const OverloadCandidate *Cand) {
10826   SourceLocation Loc;
10831       Sema &S, SourceLocation Loc, size_t NArgs,
10940     SourceLocation LLoc = GetLocationForCandidate(L);
10941     SourceLocation RLoc = GetLocationForCandidate(R);
11088     StringRef Opc, SourceLocation OpLoc,
11100                                           StringRef Opc, SourceLocation OpLoc) {
11145 static SourceLocation
11170     SourceLocation LLoc = GetLocationForCandidate(L);
11171     SourceLocation RLoc = GetLocationForCandidate(R);
11209 void TemplateSpecCandidateSet::NoteCandidates(Sema &S, SourceLocation Loc) {
11271 static bool completeFunctionType(Sema &S, FunctionDecl *FD, SourceLocation Loc,
12091 DiagnoseTwoPhaseLookup(Sema &SemaRef, SourceLocation FnLoc,
12196                                SourceLocation OpLoc,
12228                       SourceLocation LParenLoc,
12230                       SourceLocation RParenLoc,
12244   SourceLocation TemplateKWLoc = ULE->getTemplateKeywordLoc();
12310                                   SourceLocation RParenLoc,
12376                                            SourceLocation LParenLoc,
12378                                            SourceLocation RParenLoc,
12483                                          SourceLocation LParenLoc,
12485                                          SourceLocation RParenLoc,
12532 Sema::CreateOverloadedUnaryOp(SourceLocation OpLoc, UnaryOperatorKind Opc,
12722 ExprResult Sema::CreateOverloadedBinOp(SourceLocation OpLoc,
13128 Sema::CreateOverloadedArraySubscriptExpr(SourceLocation LLoc,
13129                                          SourceLocation RLoc,
13305                                 SourceLocation LParenLoc,
13307                                 SourceLocation RParenLoc) {
13587                                    SourceLocation LParenLoc,
13589                                    SourceLocation RParenLoc) {
13868 Sema::BuildOverloadedArrowExpr(Scope *S, Expr *Base, SourceLocation OpLoc,
13876   SourceLocation Loc = Base->getExprLoc();
13988                                           SourceLocation LitEndLoc,
13990   SourceLocation UDSuffixLoc = SuffixInfo.getCXXLiteralOperatorNameLoc();
14068 Sema::BuildForRangeBeginEndCall(SourceLocation Loc,
14069                                 SourceLocation RangeLoc,
14278         SourceLocation Loc = MemExpr->getMemberLoc();
tools/clang/lib/Sema/SemaPseudoObject.cpp
  190     SourceLocation GenericLoc;
  194     PseudoOpBuilder(Sema &S, SourceLocation genericLoc, bool IsUnique)
  217                                         SourceLocation opLoc,
  220     ExprResult buildIncDecOperation(Scope *Sc, SourceLocation opLoc,
  252     virtual ExprResult buildSet(Expr *, SourceLocation,
  290                                         SourceLocation opLoc,
  293     ExprResult buildIncDecOperation(Scope *Sc, SourceLocation opLoc,
  304     ExprResult buildSet(Expr *op, SourceLocation, bool) override;
  329                                        SourceLocation opLoc,
  338    ExprResult buildSet(Expr *op, SourceLocation, bool) override;
  360    ExprResult buildSet(Expr *op, SourceLocation, bool) override;
  431 PseudoOpBuilder::buildAssignmentOperation(Scope *Sc, SourceLocation opcLoc,
  496 PseudoOpBuilder::buildIncDecOperation(Scope *Sc, SourceLocation opcLoc,
  761 ExprResult ObjCPropertyOpBuilder::buildSet(Expr *op, SourceLocation opcLoc,
  893                                                 SourceLocation opcLoc,
  939 ObjCPropertyOpBuilder::buildIncDecOperation(Scope *Sc, SourceLocation opcLoc,
 1001                                                 SourceLocation opcLoc,
 1410 ExprResult ObjCSubscriptOpBuilder::buildSet(Expr *op, SourceLocation opcLoc,
 1499 ExprResult MSPropertyOpBuilder::buildSet(Expr *op, SourceLocation sl,
 1560 ExprResult Sema::checkPseudoObjectIncDec(Scope *Sc, SourceLocation opcLoc,
 1589 ExprResult Sema::checkPseudoObjectAssignment(Scope *S, SourceLocation opcLoc,
tools/clang/lib/Sema/SemaStmt.cpp
   67 StmtResult Sema::ActOnNullStmt(SourceLocation SemiLoc,
   72 StmtResult Sema::ActOnDeclStmt(DeclGroupPtrTy dg, SourceLocation StartLoc,
   73                                SourceLocation EndLoc) {
  129   SourceLocation Loc;
  200                               SourceLocation Loc, SourceRange R1,
  231   SourceLocation ExprLoc = E->IgnoreParenImpCasts()->getExprLoc();
  242   SourceLocation Loc;
  258     SourceLocation SpellLoc = Loc;
  388 StmtResult Sema::ActOnCompoundStmt(SourceLocation L, SourceLocation R,
  388 StmtResult Sema::ActOnCompoundStmt(SourceLocation L, SourceLocation R,
  424 Sema::ActOnCaseExpr(SourceLocation CaseLoc, ExprResult Val) {
  474 Sema::ActOnCaseStmt(SourceLocation CaseLoc, ExprResult LHSVal,
  475                     SourceLocation DotDotDotLoc, ExprResult RHSVal,
  476                     SourceLocation ColonLoc) {
  504 Sema::ActOnDefaultStmt(SourceLocation DefaultLoc, SourceLocation ColonLoc,
  504 Sema::ActOnDefaultStmt(SourceLocation DefaultLoc, SourceLocation ColonLoc,
  517 Sema::ActOnLabelStmt(SourceLocation IdentLoc, LabelDecl *TheDecl,
  518                      SourceLocation ColonLoc, Stmt *SubStmt) {
  540 StmtResult Sema::ActOnAttributedStmt(SourceLocation AttrLoc,
  563 Sema::ActOnIfStmt(SourceLocation IfLoc, bool IsConstexpr, Stmt *InitStmt,
  565                   Stmt *thenStmt, SourceLocation ElseLoc,
  589 StmtResult Sema::BuildIfStmt(SourceLocation IfLoc, bool IsConstexpr,
  591                              Stmt *thenStmt, SourceLocation ElseLoc,
  662 ExprResult Sema::CheckSwitchCondition(SourceLocation SwitchLoc, Expr *Cond) {
  671     SemaDiagnosticBuilder diagnoseNotInt(Sema &S, SourceLocation Loc,
  677         Sema &S, SourceLocation Loc, QualType T) override {
  683         Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) override {
  693     SemaDiagnosticBuilder diagnoseAmbiguous(Sema &S, SourceLocation Loc,
  705         Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) override {
  726 StmtResult Sema::ActOnStartOfSwitchStmt(SourceLocation SwitchLoc,
  762 static void checkCaseValue(Sema &S, SourceLocation Loc, const llvm::APSInt &Val,
  847 Sema::ActOnFinishSwitchStmt(SourceLocation SwitchLoc, Stmt *Switch,
 1316 StmtResult Sema::ActOnWhileStmt(SourceLocation WhileLoc, ConditionResult Cond,
 1336 Sema::ActOnDoStmt(SourceLocation DoLoc, Stmt *Body,
 1337                   SourceLocation WhileLoc, SourceLocation CondLParen,
 1337                   SourceLocation WhileLoc, SourceLocation CondLParen,
 1338                   Expr *Cond, SourceLocation CondRParen) {
 1622     SourceLocation BreakLoc;
 1623     SourceLocation ContinueLoc;
 1699     SourceLocation GetContinueLoc() { return ContinueLoc; }
 1700     SourceLocation GetBreakLoc() { return BreakLoc; }
 1763 StmtResult Sema::ActOnForStmt(SourceLocation ForLoc, SourceLocation LParenLoc,
 1763 StmtResult Sema::ActOnForStmt(SourceLocation ForLoc, SourceLocation LParenLoc,
 1765                               FullExprArg third, SourceLocation RParenLoc,
 1827 Sema::CheckObjCForCollectionOperand(SourceLocation forLoc, Expr *collection) {
 1902 Sema::ActOnObjCForCollectionStmt(SourceLocation ForLoc,
 1904                                  SourceLocation RParenLoc) {
 1945           SourceLocation Loc =
 1986                                   SourceLocation Loc, int DiagID) {
 2042   SourceLocation Loc = D->getLocation();
 2057 VarDecl *BuildForRangeVarDecl(Sema &SemaRef, SourceLocation Loc,
 2093 StmtResult Sema::ActOnCXXForRangeStmt(Scope *S, SourceLocation ForLoc,
 2094                                       SourceLocation CoawaitLoc, Stmt *InitStmt,
 2095                                       Stmt *First, SourceLocation ColonLoc,
 2096                                       Expr *Range, SourceLocation RParenLoc,
 2134   SourceLocation RangeLoc = Range->getBeginLoc();
 2171                       SourceLocation ColonLoc, SourceLocation CoawaitLoc,
 2171                       SourceLocation ColonLoc, SourceLocation CoawaitLoc,
 2304                                                  SourceLocation ForLoc,
 2305                                                  SourceLocation CoawaitLoc,
 2308                                                  SourceLocation ColonLoc,
 2310                                                  SourceLocation RangeLoc,
 2311                                                  SourceLocation RParenLoc) {
 2356 StmtResult Sema::BuildCXXForRangeStmt(SourceLocation ForLoc,
 2357                                       SourceLocation CoawaitLoc, Stmt *InitStmt,
 2358                                       SourceLocation ColonLoc, Stmt *RangeDecl,
 2361                                       SourceLocation RParenLoc,
 2403     SourceLocation RangeLoc = RangeVar->getLocation();
 2876 StmtResult Sema::ActOnGotoStmt(SourceLocation GotoLoc,
 2877                                SourceLocation LabelLoc,
 2885 Sema::ActOnIndirectGotoStmt(SourceLocation GotoLoc, SourceLocation StarLoc,
 2885 Sema::ActOnIndirectGotoStmt(SourceLocation GotoLoc, SourceLocation StarLoc,
 2911 static void CheckJumpOutOfSEHFinally(Sema &S, SourceLocation Loc,
 2920 Sema::ActOnContinueStmt(SourceLocation ContinueLoc, Scope *CurScope) {
 2932 Sema::ActOnBreakStmt(SourceLocation BreakLoc, Scope *CurScope) {
 3238 Sema::ActOnCapScopeReturnStmt(SourceLocation ReturnLoc, Expr *RetValExp) {
 3444                                             SourceLocation ReturnLoc,
 3554 Sema::ActOnReturnStmt(SourceLocation ReturnLoc, Expr *RetValExp,
 3578 StmtResult Sema::BuildReturnStmt(SourceLocation ReturnLoc, Expr *RetValExp) {
 3820 Sema::ActOnObjCAtCatchStmt(SourceLocation AtLoc,
 3821                            SourceLocation RParen, Decl *Parm,
 3831 Sema::ActOnObjCAtFinallyStmt(SourceLocation AtLoc, Stmt *Body) {
 3836 Sema::ActOnObjCAtTryStmt(SourceLocation AtLoc, Stmt *Try,
 3847 StmtResult Sema::BuildObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw) {
 3873 Sema::ActOnObjCAtThrowStmt(SourceLocation AtLoc, Expr *Throw,
 3891 Sema::ActOnObjCAtSynchronizedOperand(SourceLocation atLoc, Expr *operand) {
 3929 Sema::ActOnObjCAtSynchronizedStmt(SourceLocation AtLoc, Expr *SyncExpr,
 3939 Sema::ActOnCXXCatchBlock(SourceLocation CatchLoc, Decl *ExDecl,
 3947 Sema::ActOnObjCAutoreleasePoolStmt(SourceLocation AtLoc, Stmt *Body) {
 4056 StmtResult Sema::ActOnCXXTryBlock(SourceLocation TryLoc, Stmt *TryBlock,
 4152 StmtResult Sema::ActOnSEHTryBlock(bool IsCXXTry, SourceLocation TryLoc,
 4188 Sema::ActOnSEHExceptBlock(SourceLocation Loc,
 4210 StmtResult Sema::ActOnFinishSEHFinallyBlock(SourceLocation Loc, Stmt *Block) {
 4217 Sema::ActOnSEHLeaveStmt(SourceLocation Loc, Scope *CurScope) {
 4228 StmtResult Sema::BuildMSDependentExistsStmt(SourceLocation KeywordLoc,
 4240 StmtResult Sema::ActOnMSDependentExistsStmt(SourceLocation KeywordLoc,
 4252 Sema::CreateCapturedStmtRecordDecl(CapturedDecl *&CD, SourceLocation Loc,
 4318 void Sema::ActOnCapturedRegionStart(SourceLocation Loc, Scope *CurScope,
 4347 void Sema::ActOnCapturedRegionStart(SourceLocation Loc, Scope *CurScope,
tools/clang/lib/Sema/SemaStmtAsm.cpp
  209 static SourceLocation
  240 StmtResult Sema::ActOnGCCAsmStmt(SourceLocation AsmLoc, bool IsSimple,
  246                                  SourceLocation RParenLoc) {
  660   SourceLocation ConstraintLoc =
  720                                            SourceLocation TemplateKWLoc,
  767                                 unsigned &Offset, SourceLocation AsmLoc) {
  836                                   SourceLocation AsmLoc) {
  875 StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc, SourceLocation LBraceLoc,
  875 StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc, SourceLocation LBraceLoc,
  882                                 SourceLocation EndLoc) {
  894                                        SourceLocation Location,
tools/clang/lib/Sema/SemaStmtAttr.cpp
   31       SourceLocation L = S.getLocForEndOfToken(Range.getEnd());
  258     SourceLocation OptionLoc = LH->getRange().getBegin();
tools/clang/lib/Sema/SemaTemplate.cpp
  269                                 SourceLocation NameLoc,
  302                                        SourceLocation IILoc,
  331                               SourceLocation TemplateKWLoc,
  731 bool Sema::DiagnoseUninstantiableTemplate(SourceLocation PointOfInstantiation,
  830 void Sema::DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl) {
  856                                              SourceLocation EllipsisLoc) const {
  911                                                  SourceLocation Loc,
  934     SourceLocation EllipsisLoc;
  979                                SourceLocation EllipsisLoc,
  980                                SourceLocation KeyLoc,
  982                                SourceLocation ParamNameLoc,
  984                                SourceLocation EqualLoc,
 1045                                                  SourceLocation Loc) {
 1059                                                  SourceLocation Loc) {
 1116                                           SourceLocation EqualLoc,
 1249                                            SourceLocation TmpLoc,
 1251                                            SourceLocation EllipsisLoc,
 1253                                            SourceLocation NameLoc,
 1256                                            SourceLocation EqualLoc,
 1330                                  SourceLocation ExportLoc,
 1331                                  SourceLocation TemplateLoc,
 1332                                  SourceLocation LAngleLoc,
 1334                                  SourceLocation RAngleLoc,
 1352     Scope *S, unsigned TagSpec, TagUseKind TUK, SourceLocation KWLoc,
 1353     CXXScopeSpec &SS, IdentifierInfo *Name, SourceLocation NameLoc,
 1355     AccessSpecifier AS, SourceLocation ModulePrivateLoc,
 1356     SourceLocation FriendLoc, unsigned NumOuterTemplateParamLists,
 1831     SourceLocation Loc = Template->getLocation();
 2006                                  SourceLocation LocStart, SourceLocation Loc,
 2006                                  SourceLocation LocStart, SourceLocation Loc,
 2007                                  SourceLocation LocEnd) {
 2039                                           SourceLocation Loc) {
 2118                                             SourceLocation ParamLoc,
 2240   SourceLocation PreviousDefaultArgLoc;
 2253     SourceLocation OldDefaultLoc;
 2254     SourceLocation NewDefaultLoc;
 2462   SourceLocation MatchLoc;
 2481   bool Matches(unsigned ParmDepth, SourceLocation Loc = SourceLocation()) {
 2610     SourceLocation DeclStartLoc, SourceLocation DeclLoc, const CXXScopeSpec &SS,
 2610     SourceLocation DeclStartLoc, SourceLocation DeclLoc, const CXXScopeSpec &SS,
 2633   SourceLocation ExplicitSpecLoc;
 2737     SourceLocation ExpectedTemplateLoc;
 2992                            SourceLocation TemplateLoc,
 3108   SourceLocation Loc = InnerBinOp->getExprLoc();
 3197                                    SourceLocation TemplateLoc,
 3392                                            SourceLocation NameLoc,
 3409                                             SourceLocation NameLoc,
 3444     Scope *S, CXXScopeSpec &SS, SourceLocation TemplateKWLoc,
 3446     SourceLocation TemplateIILoc, SourceLocation LAngleLoc,
 3446     SourceLocation TemplateIILoc, SourceLocation LAngleLoc,
 3447     ASTTemplateArgsPtr TemplateArgsIn, SourceLocation RAngleLoc,
 3549                                         SourceLocation TagLoc,
 3551                                         SourceLocation TemplateKWLoc,
 3553                                         SourceLocation TemplateLoc,
 3554                                         SourceLocation LAngleLoc,
 3556                                         SourceLocation RAngleLoc) {
 3642                                              SourceLocation Loc,
 3833     Scope *S, Declarator &D, TypeSourceInfo *DI, SourceLocation TemplateKWLoc,
 3843   SourceLocation TemplateNameLoc = D.getIdentifierLoc();
 3844   SourceLocation LAngleLoc = TemplateId->LAngleLoc;
 3845   SourceLocation RAngleLoc = TemplateId->RAngleLoc;
 4036 Sema::CheckVarTemplateId(VarTemplateDecl *Template, SourceLocation TemplateLoc,
 4037                          SourceLocation TemplateNameLoc,
 4070   SourceLocation PointOfInstantiation = TemplateNameLoc;
 4212                                             SourceLocation Loc) {
 4377                                                   SourceLocation TemplateKWLoc,
 4536         SourceLocation Loc = AL.getSourceRange().getBegin();
 4621                              SourceLocation TemplateLoc,
 4622                              SourceLocation RAngleLoc,
 4730                              SourceLocation TemplateLoc,
 4731                              SourceLocation RAngleLoc,
 4771                                               SourceLocation TemplateLoc,
 4772                                               SourceLocation RAngleLoc,
 4896                                  SourceLocation TemplateLoc,
 4897                                  SourceLocation RAngleLoc,
 5006         SourceLocation TemplateKWLoc;
 5168 static bool diagnoseMissingArgument(Sema &S, SourceLocation Loc,
 5206     TemplateDecl *Template, SourceLocation TemplateLoc,
 5222   SourceLocation RAngleLoc = NewArgs.getRAngleLoc();
 5793     SourceLocation DiagLoc = Arg->getExprLoc();
 5927   SourceLocation AddrOpLoc;
 5935     SourceLocation FirstOpLoc;
 6340   SourceLocation StartLoc = Arg->getBeginLoc();
 6632         void diagnoseNotICE(Sema &S, SourceLocation Loc,
 6866     Sema::TemplateParameterListEqualKind Kind, SourceLocation TemplateArgLoc);
 7122                                        SourceLocation TemplateArgLoc) {
 7231                                                 SourceLocation TemplateArgLoc) {
 7283                                      SourceLocation TemplateArgLoc) {
 7460                                              SourceLocation Loc,
 7552     Sema &S, SourceLocation TemplateNameLoc, NonTypeTemplateParmDecl *Param,
 7649     SourceLocation TemplateNameLoc, TemplateDecl *PrimaryTemplate,
 7674     Scope *S, unsigned TagSpec, TagUseKind TUK, SourceLocation KWLoc,
 7675     SourceLocation ModulePrivateLoc, TemplateIdAnnotation &TemplateId,
 7684   SourceLocation TemplateKWLoc = TemplateParameterLists.size() > 0
 7686   SourceLocation TemplateNameLoc = TemplateId.TemplateNameLoc;
 7687   SourceLocation LAngleLoc = TemplateId.LAngleLoc;
 7688   SourceLocation RAngleLoc = TemplateId.RAngleLoc;
 8050                                    IdentifierInfo *Name, SourceLocation NameLoc,
 8113 static SourceLocation DiagLocForExplicitInstantiation(
 8114     NamedDecl* D, SourceLocation PointOfInstantiation) {
 8118   SourceLocation PrevDiagLoc = PointOfInstantiation;
 8151 Sema::CheckSpecializationInstantiationRedecl(SourceLocation NewLoc,
 8155                                         SourceLocation PrevPointOfInstantiation,
 8795                                              SourceLocation Loc) {
 8829                                             SourceLocation InstLoc,
 8881                                        SourceLocation InstLoc,
 8949     Scope *S, SourceLocation ExternLoc, SourceLocation TemplateLoc,
 8949     Scope *S, SourceLocation ExternLoc, SourceLocation TemplateLoc,
 8950     unsigned TagSpec, SourceLocation KWLoc, const CXXScopeSpec &SS,
 8951     TemplateTy TemplateD, SourceLocation TemplateNameLoc,
 8952     SourceLocation LAngleLoc, ASTTemplateArgsPtr TemplateArgsIn,
 8953     SourceLocation RAngleLoc, const ParsedAttributesView &Attr) {
 9247 Sema::ActOnExplicitInstantiation(Scope *S, SourceLocation ExternLoc,
 9248                                  SourceLocation TemplateLoc, unsigned TagSpec,
 9249                                  SourceLocation KWLoc, CXXScopeSpec &SS,
 9250                                  IdentifierInfo *Name, SourceLocation NameLoc,
 9362                                             SourceLocation ExternLoc,
 9363                                             SourceLocation TemplateLoc,
 9535     SourceLocation POI = Prev->getPointOfInstantiation();
 9766                         SourceLocation TagLoc, SourceLocation NameLoc) {
 9766                         SourceLocation TagLoc, SourceLocation NameLoc) {
 9796 Sema::ActOnTypenameType(Scope *S, SourceLocation TypenameLoc,
 9798                         SourceLocation IdLoc) {
 9833                         SourceLocation TypenameLoc,
 9835                         SourceLocation TemplateKWLoc,
 9838                         SourceLocation TemplateIILoc,
 9839                         SourceLocation LAngleLoc,
 9841                         SourceLocation RAngleLoc) {
 9968                         SourceLocation KeywordLoc,
 9971                         SourceLocation IILoc) {
10039       SourceLocation Loc = Using->getQualifierLoc().getBeginLoc();
10127     SourceLocation Loc;
10134                                   SourceLocation Loc,
10150     SourceLocation getBaseLocation() { return Loc; }
10157     void setBase(SourceLocation Loc, DeclarationName Entity) {
10196                                                         SourceLocation Loc,
10372   SourceLocation Loc;
10376   ExplicitSpecializationVisibilityChecker(Sema &S, SourceLocation Loc)
10482 void Sema::checkSpecializationVisibility(SourceLocation Loc, NamedDecl *Spec) {
10491 void Sema::checkPartialSpecializationVisibility(SourceLocation Loc,
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
 2444                                     QualType NTTPType, SourceLocation Loc) {
 4472   SourceLocation Loc = Init->getExprLoc();
 4631 bool Sema::DeduceReturnType(FunctionDecl *FD, SourceLocation Loc,
 4714                                      SourceLocation Loc,
 4904                                  SourceLocation Loc,
 4969     SourceLocation Loc, const PartialDiagnostic &NoneDiag,
 5114                                               SourceLocation Loc) {
 5145     VarTemplatePartialSpecializationDecl *PS2, SourceLocation Loc) {
 5193      TemplateParameterList *P, TemplateDecl *AArg, SourceLocation Loc) {
tools/clang/lib/Sema/SemaTemplateInstantiate.cpp
  222     SourceLocation PointOfInstantiation, SourceRange InstantiationRange,
  256     Sema &SemaRef, SourceLocation PointOfInstantiation, Decl *Entity,
  263     Sema &SemaRef, SourceLocation PointOfInstantiation, FunctionDecl *Entity,
  270     Sema &SemaRef, SourceLocation PointOfInstantiation, TemplateParameter Param,
  280     Sema &SemaRef, SourceLocation PointOfInstantiation,
  294     Sema &SemaRef, SourceLocation PointOfInstantiation,
  305     Sema &SemaRef, SourceLocation PointOfInstantiation,
  316     Sema &SemaRef, SourceLocation PointOfInstantiation,
  327     Sema &SemaRef, SourceLocation PointOfInstantiation, ParmVarDecl *Param,
  336     Sema &SemaRef, SourceLocation PointOfInstantiation, NamedDecl *Template,
  346     Sema &SemaRef, SourceLocation PointOfInstantiation, NamedDecl *Template,
  356     Sema &SemaRef, SourceLocation PointOfInstantiation, TemplateDecl *Template,
  365     Sema &SemaRef, SourceLocation PointOfInstantiation,
  374     Sema &SemaRef, SourceLocation PointOfInstantiation,
  443                                         SourceLocation PointOfInstantiation,
  793     SourceLocation Loc;
  801                          SourceLocation Loc,
  814     SourceLocation getBaseLocation() { return Loc; }
  821     void setBase(SourceLocation Loc, DeclarationName Entity) {
  826     bool TryExpandParameterPacks(SourceLocation EllipsisLoc,
  876     Decl *TransformDecl(SourceLocation Loc, Decl *D);
  919     Decl *TransformDefinition(SourceLocation Loc, Decl *D);
  923     NamedDecl *TransformFirstQualifierInScope(NamedDecl *D, SourceLocation Loc);
  929                                   SourceLocation StartLoc,
  930                                   SourceLocation NameLoc,
  940     QualType RebuildElaboratedType(SourceLocation KeywordLoc,
  947                           SourceLocation NameLoc,
 1045 Decl *TemplateInstantiator::TransformDecl(SourceLocation Loc, Decl *D) {
 1080 Decl *TemplateInstantiator::TransformDefinition(SourceLocation Loc, Decl *D) {
 1091                                                      SourceLocation Loc) {
 1131                                            SourceLocation StartLoc,
 1132                                            SourceLocation NameLoc,
 1151 TemplateInstantiator::RebuildElaboratedType(SourceLocation KeywordLoc,
 1158     SourceLocation TagLocation = KeywordLoc;
 1184     CXXScopeSpec &SS, TemplateName Name, SourceLocation NameLoc,
 1649                                 SourceLocation Loc,
 1667                                 SourceLocation Loc,
 1698                          SourceLocation Loc, DeclarationName Entity) {
 1740                                 SourceLocation Loc,
 1780 bool Sema::SubstExceptionSpec(SourceLocation Loc,
 1879         SourceLocation EqualLoc = NewArg.get()->getBeginLoc();
 1916     SourceLocation Loc, ArrayRef<ParmVarDecl *> Params,
 1954     SourceLocation EllipsisLoc;
 2075 Sema::InstantiateClass(SourceLocation PointOfInstantiation,
 2327 bool Sema::InstantiateEnum(SourceLocation PointOfInstantiation,
 2393     SourceLocation PointOfInstantiation, FieldDecl *Instantiation,
 2465     SourceLocation Loc, ClassTemplateSpecializationDecl *ClassTemplateSpec) {
 2488     Sema &S, SourceLocation PointOfInstantiation,
 2632     SourceLocation PointOfInstantiation,
 2655 Sema::InstantiateClassMembers(SourceLocation PointOfInstantiation,
 2876                                            SourceLocation PointOfInstantiation,
 2958                         TemplateName Name, SourceLocation Loc,
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
  120   SourceLocation EllipsisLoc = Aligned->getLocation();
 1178       SourceLocation UnderlyingLoc = TI->getTypeLoc().getBeginLoc();
 1215       SourceLocation UnderlyingLoc = TI->getTypeLoc().getBeginLoc();
 2026                 SourceLocation Loc = R->getLocation(); // FIXME
 2153   SourceLocation StartLoc = D->getInnerLocStart();
 2371       SourceLocation Loc;
 2915   SourceLocation TypenameLoc = TD ? TD->getTypenameLoc() : SourceLocation();
 2933   SourceLocation EllipsisLoc =
 3049   std::pair<QualType, SourceLocation> ReductionTypes[] = {
 3975 void Sema::InstantiateExceptionSpec(SourceLocation PointOfInstantiation,
 4131                                      SourceLocation Loc) {
 4185 void Sema::InstantiateFunctionDefinition(SourceLocation PointOfInstantiation,
 4410     SourceLocation PointOfInstantiation, void *InsertPos,
 4696 void Sema::InstantiateVariableDefinition(SourceLocation PointOfInstantiation,
 4932     SourceLocation EllipsisLoc;
 5271 DeclContext *Sema::FindInstantiatedContext(SourceLocation Loc, DeclContext* DC,
 5305 NamedDecl *Sema::FindInstantiatedDecl(SourceLocation Loc, NamedDecl *D,
tools/clang/lib/Sema/SemaTemplateVariadic.cpp
   41     void addUnexpanded(NamedDecl *ND, SourceLocation Loc = SourceLocation()) {
   56                        SourceLocation Loc = SourceLocation()) {
  290 Sema::DiagnoseUnexpandedParameterPacks(SourceLocation Loc,
  352   SmallVector<SourceLocation, 4> Locations;
  381 bool Sema::DiagnoseUnexpandedParameterPack(SourceLocation Loc,
  464 bool Sema::DiagnoseUnexpandedParameterPack(SourceLocation Loc,
  530                          SourceLocation EllipsisLoc) {
  569                                     SourceLocation EllipsisLoc) {
  583 Sema::CheckPackExpansion(TypeSourceInfo *Pattern, SourceLocation EllipsisLoc,
  601                                   SourceLocation EllipsisLoc,
  620 ExprResult Sema::ActOnPackExpansion(Expr *Pattern, SourceLocation EllipsisLoc) {
  624 ExprResult Sema::CheckPackExpansion(Expr *Pattern, SourceLocation EllipsisLoc,
  646     SourceLocation EllipsisLoc, SourceRange PatternRange,
  652   std::pair<IdentifierInfo *, SourceLocation> FirstPack;
  655   SourceLocation PartiallySubstitutedPackLoc;
  975                                               SourceLocation OpLoc,
  977                                               SourceLocation NameLoc,
  978                                               SourceLocation RParenLoc) {
 1027       SourceLocation &Ellipsis, Optional<unsigned> &NumExpansions) const {
 1156 ExprResult Sema::ActOnCXXFoldExpr(SourceLocation LParenLoc, Expr *LHS,
 1158                                   SourceLocation EllipsisLoc, Expr *RHS,
 1159                                   SourceLocation RParenLoc) {
 1202 ExprResult Sema::BuildCXXFoldExpr(SourceLocation LParenLoc, Expr *LHS,
 1204                                   SourceLocation EllipsisLoc, Expr *RHS,
 1205                                   SourceLocation RParenLoc,
 1212 ExprResult Sema::BuildEmptyCXXFoldExpr(SourceLocation EllipsisLoc,
tools/clang/lib/Sema/SemaType.cpp
   84   SourceLocation loc = attr.getLoc();
  187     llvm::DenseMap<const MacroQualifiedType *, SourceLocation> LocsForMacros;
  302     SourceLocation
  311                                               SourceLocation Loc) {
  745   SourceLocation loc = declarator.getBeginLoc();
  748   SourceLocation NoLoc;
  781   typedef std::pair<DeclSpec::TQ, SourceLocation> QualLoc;
  832 static QualType applyObjCTypeArgs(Sema &S, SourceLocation loc, QualType type,
 1039                                       SourceLocation ProtocolLAngleLoc,
 1041                                       ArrayRef<SourceLocation> ProtocolLocs,
 1042                                       SourceLocation ProtocolRAngleLoc,
 1062                                    SourceLocation Loc,
 1063                                    SourceLocation TypeArgsLAngleLoc,
 1065                                    SourceLocation TypeArgsRAngleLoc,
 1066                                    SourceLocation ProtocolLAngleLoc,
 1068                                    ArrayRef<SourceLocation> ProtocolLocs,
 1069                                    SourceLocation ProtocolRAngleLoc,
 1098              SourceLocation lAngleLoc,
 1100              ArrayRef<SourceLocation> protocolLocs,
 1101              SourceLocation rAngleLoc) {
 1138              SourceLocation Loc,
 1140              SourceLocation TypeArgsLAngleLoc,
 1142              SourceLocation TypeArgsRAngleLoc,
 1143              SourceLocation ProtocolLAngleLoc,
 1145              ArrayRef<SourceLocation> ProtocolLocs,
 1146              SourceLocation ProtocolRAngleLoc) {
 1267   SourceLocation DeclLoc = declarator.getIdentifierLoc();
 1767 QualType Sema::BuildQualifiedType(QualType T, SourceLocation Loc,
 1814 QualType Sema::BuildQualifiedType(QualType T, SourceLocation Loc,
 1865                                            SourceLocation loc,
 1954 static bool checkQualifiedFunction(Sema &S, QualType T, SourceLocation Loc,
 1968 bool Sema::CheckQualifiedFunctionForTypeId(QualType T, SourceLocation Loc) {
 1993                                 SourceLocation Loc, DeclarationName Entity) {
 2033                                   SourceLocation Loc,
 2089 QualType Sema::BuildReadPipeType(QualType T, SourceLocation Loc) {
 2101 QualType Sema::BuildWritePipeType(QualType T, SourceLocation Loc) {
 2114     void diagnoseNotICE(Sema &S, SourceLocation Loc, SourceRange SR) override {
 2117     void diagnoseFold(Sema &S, SourceLocation Loc, SourceRange SR) override {
 2146   SourceLocation Loc = Brackets.getBegin();
 2350                                SourceLocation AttrLoc) {
 2405                                   SourceLocation AttrLoc) {
 2451 bool Sema::CheckFunctionReturnType(QualType T, SourceLocation Loc) {
 2491                     llvm::function_ref<SourceLocation(unsigned)> getParamLoc) {
 2544                                  SourceLocation Loc, DeclarationName Entity,
 2597                                       SourceLocation Loc,
 2648                                      SourceLocation Loc,
 2782                                      SourceLocation FallbackLoc,
 2783                                      SourceLocation ConstQualLoc,
 2784                                      SourceLocation VolatileQualLoc,
 2785                                      SourceLocation RestrictQualLoc,
 2786                                      SourceLocation AtomicQualLoc,
 2787                                      SourceLocation UnalignedQualLoc) {
 2794     SourceLocation Loc;
 2805   SourceLocation Loc;
 2815       SourceLocation QualLoc = E.Loc;
 2858           SourceLocation::getFromRawEncoding(PTI.ConstQualLoc),
 2859           SourceLocation::getFromRawEncoding(PTI.VolatileQualLoc),
 2860           SourceLocation::getFromRawEncoding(PTI.RestrictQualLoc),
 2861           SourceLocation::getFromRawEncoding(PTI.AtomicQualLoc),
 2862           SourceLocation::getFromRawEncoding(PTI.UnalignedQualLoc));
 3289     SourceLocation B = Range.getBegin();
 3290     SourceLocation E = S.getLocForEndOfToken(Range.getEnd());
 3762                                                     SourceLocation loc) {
 3801                              SourceLocation PointerLoc,
 3807   SourceLocation FixItLoc = S.getLocForEndOfToken(PointerLoc);
 3837                                               SourceLocation PointerLoc,
 3838                                               SourceLocation PointerEndLoc) {
 3848   auto FixItLoc = PointerEndLoc.isValid() ? PointerEndLoc : PointerLoc;
 3870                             SourceLocation pointerLoc,
 3871                             SourceLocation pointerEndLoc = SourceLocation()) {
 3910 static void recordNullabilitySeen(Sema &S, SourceLocation loc) {
 3995                                                 SourceLocation AttrLoc) {
 4104   SourceLocation assumeNonNullLoc = S.PP.getPragmaAssumeNonNullLoc();
 4661         SourceLocation DiagLoc, FixitLoc;
 4709         SourceLocation AttrLoc;
 5128       SourceLocation Loc = D.getBeginLoc();
 5132         SmallVector<SourceLocation, 4> RemovalLocs;
 5722   SourceLocation Loc;
 5731     Loc = SourceLocation::getFromRawEncoding(Chunk.Ptr.AtomicQualLoc);
 5879 ParsedType Sema::ActOnObjCInstanceType(SourceLocation Loc) {
 5894                                    SourceLocation AttrLoc) {
 5938                                      SourceLocation AttrLoc) {
 5961                                      SourceLocation AttrLoc) {
 5999       SourceLocation TemplateKWLoc;
 6096   SourceLocation AttrLoc = attr.getLoc();
 6554   SourceLocation nullabilityLoc = attr.getLoc();
 7087                                   SourceLocation Loc) {
 7148     SourceLocation TemplateKWLoc;
 7186     SourceLocation TemplateKWLoc;
 7736           SourceLocation PointOfInstantiation = E->getExprLoc();
 7828 bool Sema::RequireCompleteType(SourceLocation Loc, QualType T,
 7979 bool Sema::RequireCompleteTypeImpl(SourceLocation Loc, QualType T,
 8145 bool Sema::RequireCompleteType(SourceLocation Loc, QualType T,
 8183 bool Sema::RequireLiteralType(SourceLocation Loc, QualType T,
 8273 bool Sema::RequireLiteralType(SourceLocation Loc, QualType T, unsigned DiagID) {
 8297 QualType Sema::BuildTypeofExprType(Expr *E, SourceLocation Loc) {
 8381 QualType Sema::BuildDecltypeType(Expr *E, SourceLocation Loc,
 8397                                        SourceLocation Loc) {
 8430 QualType Sema::BuildAtomicType(QualType T, SourceLocation Loc) {
tools/clang/lib/Sema/TreeTransform.h
  162   SourceLocation getBaseLocation() { return SourceLocation(); }
  176   void setBase(SourceLocation Loc, DeclarationName Entity) { }
  182     SourceLocation OldLocation;
  186     TemporaryBase(TreeTransform &Self, SourceLocation Location,
  258   bool TryExpandParameterPacks(SourceLocation EllipsisLoc,
  427   Decl *TransformDecl(SourceLocation Loc, Decl *D) {
  440   Sema::ConditionResult TransformCondition(SourceLocation Loc, VarDecl *Var,
  468   Decl *TransformDefinition(SourceLocation Loc, Decl *D) {
  481   NamedDecl *TransformFirstQualifierInScope(NamedDecl *D, SourceLocation Loc) {
  531                         SourceLocation NameLoc,
  616   bool TransformExceptionSpec(SourceLocation Loc,
  646       SourceLocation Loc, ArrayRef<ParmVarDecl *> Params,
  721   QualType RebuildPointerType(QualType PointeeType, SourceLocation Sigil);
  727   QualType RebuildBlockPointerType(QualType PointeeType, SourceLocation Sigil);
  739                                 SourceLocation Sigil);
  747                                     SourceLocation Sigil);
  750                                     SourceLocation ProtocolLAngleLoc,
  752                                     ArrayRef<SourceLocation> ProtocolLocs,
  753                                     SourceLocation ProtocolRAngleLoc);
  760                                  SourceLocation Loc,
  761                                  SourceLocation TypeArgsLAngleLoc,
  763                                  SourceLocation TypeArgsRAngleLoc,
  764                                  SourceLocation ProtocolLAngleLoc,
  766                                  ArrayRef<SourceLocation> ProtocolLocs,
  767                                  SourceLocation ProtocolRAngleLoc);
  774                                         SourceLocation Star);
  848                                            SourceLocation AttributeLoc,
  857                                 SourceLocation AttributeLoc);
  866                                               SourceLocation AttributeLoc);
  878                                             SourceLocation AttributeLoc);
  893   QualType RebuildUnresolvedUsingType(SourceLocation NameLoc, Decl *D);
  920   QualType RebuildTypeOfExprType(Expr *Underlying, SourceLocation Loc);
  930                                      SourceLocation Loc);
  936   QualType RebuildDecltypeType(Expr *Underlying, SourceLocation Loc);
  963                                              SourceLocation TemplateLoc,
  979   QualType RebuildElaboratedType(SourceLocation KeywordLoc,
  996                                           SourceLocation TemplateKWLoc,
  998                                           SourceLocation NameLoc,
 1039                                     SourceLocation KeywordLoc,
 1042                                     SourceLocation IdLoc,
 1152                                     SourceLocation EllipsisLoc,
 1162   QualType RebuildAtomicType(QualType ValueType, SourceLocation KWLoc);
 1165   QualType RebuildPipeType(QualType ValueType, SourceLocation KWLoc,
 1186                                    SourceLocation TemplateKWLoc,
 1188                                    SourceLocation NameLoc, QualType ObjectType,
 1200                                    SourceLocation TemplateKWLoc,
 1202                                    SourceLocation NameLoc, QualType ObjectType,
 1221   StmtResult RebuildCompoundStmt(SourceLocation LBraceLoc,
 1223                                        SourceLocation RBraceLoc,
 1233   StmtResult RebuildCaseStmt(SourceLocation CaseLoc,
 1235                                    SourceLocation EllipsisLoc,
 1237                                    SourceLocation ColonLoc) {
 1255   StmtResult RebuildDefaultStmt(SourceLocation DefaultLoc,
 1256                                       SourceLocation ColonLoc,
 1266   StmtResult RebuildLabelStmt(SourceLocation IdentLoc, LabelDecl *L,
 1267                               SourceLocation ColonLoc, Stmt *SubStmt) {
 1275   StmtResult RebuildAttributedStmt(SourceLocation AttrLoc,
 1285   StmtResult RebuildIfStmt(SourceLocation IfLoc, bool IsConstexpr,
 1287                            SourceLocation ElseLoc, Stmt *Else) {
 1296   StmtResult RebuildSwitchStmtStart(SourceLocation SwitchLoc, Stmt *Init,
 1305   StmtResult RebuildSwitchStmtBody(SourceLocation SwitchLoc,
 1314   StmtResult RebuildWhileStmt(SourceLocation WhileLoc,
 1323   StmtResult RebuildDoStmt(SourceLocation DoLoc, Stmt *Body,
 1324                            SourceLocation WhileLoc, SourceLocation LParenLoc,
 1324                            SourceLocation WhileLoc, SourceLocation LParenLoc,
 1325                            Expr *Cond, SourceLocation RParenLoc) {
 1334   StmtResult RebuildForStmt(SourceLocation ForLoc, SourceLocation LParenLoc,
 1334   StmtResult RebuildForStmt(SourceLocation ForLoc, SourceLocation LParenLoc,
 1336                             Sema::FullExprArg Inc, SourceLocation RParenLoc,
 1346   StmtResult RebuildGotoStmt(SourceLocation GotoLoc, SourceLocation LabelLoc,
 1346   StmtResult RebuildGotoStmt(SourceLocation GotoLoc, SourceLocation LabelLoc,
 1355   StmtResult RebuildIndirectGotoStmt(SourceLocation GotoLoc,
 1356                                      SourceLocation StarLoc,
 1365   StmtResult RebuildReturnStmt(SourceLocation ReturnLoc, Expr *Result) {
 1374                              SourceLocation StartLoc, SourceLocation EndLoc) {
 1374                              SourceLocation StartLoc, SourceLocation EndLoc) {
 1383   StmtResult RebuildGCCAsmStmt(SourceLocation AsmLoc, bool IsSimple,
 1389                                SourceLocation RParenLoc) {
 1399   StmtResult RebuildMSAsmStmt(SourceLocation AsmLoc, SourceLocation LBraceLoc,
 1399   StmtResult RebuildMSAsmStmt(SourceLocation AsmLoc, SourceLocation LBraceLoc,
 1406                               SourceLocation EndLoc) {
 1416   StmtResult RebuildCoreturnStmt(SourceLocation CoreturnLoc, Expr *Result,
 1456   StmtResult RebuildObjCAtTryStmt(SourceLocation AtLoc,
 1480   StmtResult RebuildObjCAtCatchStmt(SourceLocation AtLoc,
 1481                                           SourceLocation RParenLoc,
 1492   StmtResult RebuildObjCAtFinallyStmt(SourceLocation AtLoc,
 1501   StmtResult RebuildObjCAtThrowStmt(SourceLocation AtLoc,
 1514                                            Stmt *AStmt, SourceLocation StartLoc,
 1515                                            SourceLocation EndLoc) {
 1525                                 Expr *Condition, SourceLocation StartLoc,
 1526                                 SourceLocation LParenLoc,
 1527                                 SourceLocation NameModifierLoc,
 1528                                 SourceLocation ColonLoc,
 1529                                 SourceLocation EndLoc) {
 1539   OMPClause *RebuildOMPFinalClause(Expr *Condition, SourceLocation StartLoc,
 1540                                    SourceLocation LParenLoc,
 1541                                    SourceLocation EndLoc) {
 1551                                         SourceLocation StartLoc,
 1552                                         SourceLocation LParenLoc,
 1553                                         SourceLocation EndLoc) {
 1562   OMPClause *RebuildOMPSafelenClause(Expr *Len, SourceLocation StartLoc,
 1563                                      SourceLocation LParenLoc,
 1564                                      SourceLocation EndLoc) {
 1572   OMPClause *RebuildOMPSimdlenClause(Expr *Len, SourceLocation StartLoc,
 1573                                      SourceLocation LParenLoc,
 1574                                      SourceLocation EndLoc) {
 1582   OMPClause *RebuildOMPAllocatorClause(Expr *A, SourceLocation StartLoc,
 1583                                        SourceLocation LParenLoc,
 1584                                        SourceLocation EndLoc) {
 1592   OMPClause *RebuildOMPCollapseClause(Expr *Num, SourceLocation StartLoc,
 1593                                       SourceLocation LParenLoc,
 1594                                       SourceLocation EndLoc) {
 1604                                      SourceLocation KindKwLoc,
 1605                                      SourceLocation StartLoc,
 1606                                      SourceLocation LParenLoc,
 1607                                      SourceLocation EndLoc) {
 1617                                       SourceLocation KindKwLoc,
 1618                                       SourceLocation StartLoc,
 1619                                       SourceLocation LParenLoc,
 1620                                       SourceLocation EndLoc) {
 1631       OpenMPScheduleClauseKind Kind, Expr *ChunkSize, SourceLocation StartLoc,
 1632       SourceLocation LParenLoc, SourceLocation M1Loc, SourceLocation M2Loc,
 1632       SourceLocation LParenLoc, SourceLocation M1Loc, SourceLocation M2Loc,
 1632       SourceLocation LParenLoc, SourceLocation M1Loc, SourceLocation M2Loc,
 1633       SourceLocation KindLoc, SourceLocation CommaLoc, SourceLocation EndLoc) {
 1633       SourceLocation KindLoc, SourceLocation CommaLoc, SourceLocation EndLoc) {
 1633       SourceLocation KindLoc, SourceLocation CommaLoc, SourceLocation EndLoc) {
 1643   OMPClause *RebuildOMPOrderedClause(SourceLocation StartLoc,
 1644                                      SourceLocation EndLoc,
 1645                                      SourceLocation LParenLoc, Expr *Num) {
 1654                                      SourceLocation StartLoc,
 1655                                      SourceLocation LParenLoc,
 1656                                      SourceLocation EndLoc) {
 1666                                           SourceLocation StartLoc,
 1667                                           SourceLocation LParenLoc,
 1668                                           SourceLocation EndLoc) {
 1678                                          SourceLocation StartLoc,
 1679                                          SourceLocation LParenLoc,
 1680                                          SourceLocation EndLoc) {
 1690                                     SourceLocation StartLoc,
 1691                                     SourceLocation LParenLoc,
 1692                                     SourceLocation EndLoc) {
 1702                                        SourceLocation StartLoc,
 1703                                        SourceLocation LParenLoc,
 1704                                        SourceLocation ColonLoc,
 1705                                        SourceLocation EndLoc,
 1719       ArrayRef<Expr *> VarList, SourceLocation StartLoc,
 1720       SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc,
 1720       SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc,
 1720       SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc,
 1734   RebuildOMPInReductionClause(ArrayRef<Expr *> VarList, SourceLocation StartLoc,
 1735                               SourceLocation LParenLoc, SourceLocation ColonLoc,
 1735                               SourceLocation LParenLoc, SourceLocation ColonLoc,
 1736                               SourceLocation EndLoc,
 1750                                     SourceLocation StartLoc,
 1751                                     SourceLocation LParenLoc,
 1753                                     SourceLocation ModifierLoc,
 1754                                     SourceLocation ColonLoc,
 1755                                     SourceLocation EndLoc) {
 1766                                      SourceLocation StartLoc,
 1767                                      SourceLocation LParenLoc,
 1768                                      SourceLocation ColonLoc,
 1769                                      SourceLocation EndLoc) {
 1779                                     SourceLocation StartLoc,
 1780                                     SourceLocation LParenLoc,
 1781                                     SourceLocation EndLoc) {
 1791                                          SourceLocation StartLoc,
 1792                                          SourceLocation LParenLoc,
 1793                                          SourceLocation EndLoc) {
 1803                                    SourceLocation StartLoc,
 1804                                    SourceLocation LParenLoc,
 1805                                    SourceLocation EndLoc) {
 1815   RebuildOMPDependClause(OpenMPDependClauseKind DepKind, SourceLocation DepLoc,
 1816                          SourceLocation ColonLoc, ArrayRef<Expr *> VarList,
 1817                          SourceLocation StartLoc, SourceLocation LParenLoc,
 1817                          SourceLocation StartLoc, SourceLocation LParenLoc,
 1818                          SourceLocation EndLoc) {
 1827   OMPClause *RebuildOMPDeviceClause(Expr *Device, SourceLocation StartLoc,
 1828                                     SourceLocation LParenLoc,
 1829                                     SourceLocation EndLoc) {
 1840       ArrayRef<SourceLocation> MapTypeModifiersLoc,
 1843       SourceLocation MapLoc, SourceLocation ColonLoc, ArrayRef<Expr *> VarList,
 1843       SourceLocation MapLoc, SourceLocation ColonLoc, ArrayRef<Expr *> VarList,
 1856                                       SourceLocation StartLoc,
 1857                                       SourceLocation LParenLoc,
 1858                                       SourceLocation ColonLoc,
 1859                                       SourceLocation EndLoc) {
 1868   OMPClause *RebuildOMPNumTeamsClause(Expr *NumTeams, SourceLocation StartLoc,
 1869                                       SourceLocation LParenLoc,
 1870                                       SourceLocation EndLoc) {
 1880                                          SourceLocation StartLoc,
 1881                                          SourceLocation LParenLoc,
 1882                                          SourceLocation EndLoc) {
 1891   OMPClause *RebuildOMPPriorityClause(Expr *Priority, SourceLocation StartLoc,
 1892                                       SourceLocation LParenLoc,
 1893                                       SourceLocation EndLoc) {
 1902   OMPClause *RebuildOMPGrainsizeClause(Expr *Grainsize, SourceLocation StartLoc,
 1903                                        SourceLocation LParenLoc,
 1904                                        SourceLocation EndLoc) {
 1913   OMPClause *RebuildOMPNumTasksClause(Expr *NumTasks, SourceLocation StartLoc,
 1914                                       SourceLocation LParenLoc,
 1915                                       SourceLocation EndLoc) {
 1924   OMPClause *RebuildOMPHintClause(Expr *Hint, SourceLocation StartLoc,
 1925                                   SourceLocation LParenLoc,
 1926                                   SourceLocation EndLoc) {
 1936                                Expr *ChunkSize, SourceLocation StartLoc,
 1937                                SourceLocation LParenLoc, SourceLocation KindLoc,
 1937                                SourceLocation LParenLoc, SourceLocation KindLoc,
 1938                                SourceLocation CommaLoc, SourceLocation EndLoc) {
 1938                                SourceLocation CommaLoc, SourceLocation EndLoc) {
 2000   StmtResult RebuildObjCAtSynchronizedStmt(SourceLocation AtLoc,
 2009   StmtResult RebuildObjCAutoreleasePoolStmt(SourceLocation AtLoc,
 2018   StmtResult RebuildObjCForCollectionStmt(SourceLocation ForLoc,
 2021                                           SourceLocation RParenLoc,
 2039                                 SourceLocation StartLoc,
 2040                                 SourceLocation IdLoc,
 2053   StmtResult RebuildCXXCatchStmt(SourceLocation CatchLoc,
 2064   StmtResult RebuildCXXTryStmt(SourceLocation TryLoc, Stmt *TryBlock,
 2073   StmtResult RebuildCXXForRangeStmt(SourceLocation ForLoc,
 2074                                     SourceLocation CoawaitLoc, Stmt *Init,
 2075                                     SourceLocation ColonLoc, Stmt *Range,
 2078                                     SourceLocation RParenLoc) {
 2113   StmtResult RebuildMSDependentExistsStmt(SourceLocation KeywordLoc,
 2130   StmtResult RebuildSEHTryStmt(bool IsCXXTry, SourceLocation TryLoc,
 2135   StmtResult RebuildSEHExceptStmt(SourceLocation Loc, Expr *FilterExpr,
 2140   StmtResult RebuildSEHFinallyStmt(SourceLocation Loc, Stmt *Block) {
 3264                                            SourceLocation EllipsisLoc,
 3643     SourceLocation Loc, VarDecl *Var, Expr *Expr, Sema::ConditionKind Kind) {
 3845                                               SourceLocation NameLoc,
 3881     SourceLocation TemplateKWLoc = NameLoc;
 3936   SourceLocation Loc = getDerived().getBaseLocation();
 4145       SourceLocation Ellipsis;
 4367   SourceLocation Loc = TL.getBeginLoc();
 5152     SourceLocation Loc, ArrayRef<ParmVarDecl *> Params,
 5478     SourceLocation Loc, FunctionProtoType::ExceptionSpecInfo &ESI,
 9668   SourceLocation FakeLParenLoc
 9690   SourceLocation TemplateKWLoc = E->getTemplateKeywordLoc();
 9733   SourceLocation FakeOperatorLoc =
 9957   SourceLocation FakeOperatorLoc =
10248     SourceLocation FakeLParenLoc = SemaRef.getLocForEndOfToken(
10357   SourceLocation FakeLParenLoc
10936   SourceLocation TemplateKWLoc = Old->getTemplateKeywordLoc();
11201   SourceLocation TemplateKWLoc = E->getTemplateKeywordLoc();
11371   SourceLocation LParenLoc = T->getTypeLoc().getEndLoc();
11385     SourceLocation EllipsisLoc;
11610     SourceLocation EllipsisLoc;
11826   SourceLocation TemplateKWLoc = E->getTemplateKeywordLoc();
11903   SourceLocation TemplateKWLoc = Old->getTemplateKeywordLoc();
12056     SourceLocation Ellipsis;
12524     SmallVector<SourceLocation, 16> SelLocs;
12540     SmallVector<SourceLocation, 16> SelLocs;
12566   SmallVector<SourceLocation, 16> SelLocs;
12830                                                     SourceLocation Star) {
12837                                                          SourceLocation Star) {
12846                                              SourceLocation Sigil) {
12855                                                  SourceLocation Sigil) {
12863            SourceLocation ProtocolLAngleLoc,
12865            ArrayRef<SourceLocation> ProtocolLocs,
12866            SourceLocation ProtocolRAngleLoc) {
12876            SourceLocation Loc,
12877            SourceLocation TypeArgsLAngleLoc,
12879            SourceLocation TypeArgsRAngleLoc,
12880            SourceLocation ProtocolLAngleLoc,
12882            ArrayRef<SourceLocation> ProtocolLocs,
12883            SourceLocation ProtocolRAngleLoc) {
12894            SourceLocation Star) {
12982     QualType PointeeType, Expr *AddrSpaceExpr, SourceLocation AttributeLoc) {
12998     QualType ElementType, Expr *SizeExpr, SourceLocation AttributeLoc,
13006                                                  SourceLocation AttributeLoc) {
13019                                                   SourceLocation AttributeLoc) {
13040 QualType TreeTransform<Derived>::RebuildUnresolvedUsingType(SourceLocation Loc,
13093                                                        SourceLocation Loc) {
13104                                                      SourceLocation Loc) {
13111                                             SourceLocation Loc) {
13118                                              SourceLocation TemplateNameLoc,
13125                                                    SourceLocation KWLoc) {
13131                                                  SourceLocation KWLoc,
13149                                             SourceLocation TemplateKWLoc,
13151                                             SourceLocation NameLoc,
13169                                             SourceLocation TemplateKWLoc,
13171                                             SourceLocation NameLoc,
13176   SourceLocation SymbolLocations[3] = { NameLoc, NameLoc, NameLoc };
13284     SourceLocation LBrace;
13285     SourceLocation RBrace;
13289         LBrace = SourceLocation::getFromRawEncoding(
13291         RBrace = SourceLocation::getFromRawEncoding(
13353   SourceLocation TemplateKWLoc; // FIXME: retrieve it from caller.
13366   SourceLocation Loc = S->getBeginLoc();
tools/clang/lib/Sema/TypeLocBuilder.h
   23   enum { InlineCapacity = 8 * sizeof(SourceLocation) };
tools/clang/lib/Serialization/ASTReader.cpp
 1516     SourceLocation IncludeLoc = ReadSourceLocation(*F, Record[1]);
 1559     SourceLocation IncludeLoc = ReadSourceLocation(*F, Record[1]);
 1573     SourceLocation SpellingLoc = ReadSourceLocation(*F, Record[1]);
 1588 std::pair<SourceLocation, StringRef> ASTReader::getModuleImportLoc(int ID) {
 1608 SourceLocation ASTReader::getImportLocation(ModuleFile *F) {
 1736       SourceLocation Loc = ReadSourceLocation(F, Record, NextIndex);
 2186     SourceLocation Loc = ReadSourceLocation(M, Record, Idx);
 2784         SourceLocation ImportLoc =
 3339           SourceLocation HashToken = ReadSourceLocation(F, Record, Idx);
 3340           SourceLocation IfTokenLoc = ReadSourceLocation(F, Record, Idx);
 3343           SourceLocation ElseLoc = ReadSourceLocation(F, Record, Idx);
 3349           auto Loc = ReadSourceLocation(F, Record, Idx);
 3387       F.FirstLoc = SourceLocation::getFromRawEncoding(F.SLocEntryBaseOffset);
 3672           SourceLocation Loc = ReadSourceLocation(F, Record, I);
 4008                                   SourceLocation ImportLoc) {
 4162                                             SourceLocation ImportLoc,
 4165   llvm::SaveAndRestore<SourceLocation>
 4434                        SourceLocation ImportLoc,
 6008     SourceLocation LHS = getLoc(L);
 6009     SourceLocation RHS = getLoc(R);
 6013   bool operator()(const PPEntityOffset &L, SourceLocation RHS) const {
 6014     SourceLocation LHS = getLoc(L);
 6018   bool operator()(SourceLocation LHS, const PPEntityOffset &R) const {
 6019     SourceLocation RHS = getLoc(R);
 6023   SourceLocation getLoc(const PPEntityOffset &PPE) const {
 6030 PreprocessedEntityID ASTReader::findPreprocessedEntity(SourceLocation Loc,
 6109   SourceLocation Loc = TranslateSourceLocation(M, PPOffs.getBegin());
 6255       SourceLocation Loc = ReadSourceLocation(F, Record[Idx++]);
 6278     SourceLocation CurStateLoc =
 6461     SourceLocation LBLoc = ReadSourceLocation(*Loc.F, Record[3]);
 6462     SourceLocation RBLoc = ReadSourceLocation(*Loc.F, Record[4]);
 6857     SourceLocation AttrLoc = ReadSourceLocation(*Loc.F, Record, Idx);
 6870     SourceLocation AttrLoc = ReadSourceLocation(*Loc.F, Record, Idx);
 6882     SourceLocation AttrLoc = ReadSourceLocation(*Loc.F, Record, Idx);
 6920   SourceLocation ReadSourceLocation() {
 7549     SourceLocation TemplateNameLoc = ReadSourceLocation(F, Record, Index);
 7556     SourceLocation TemplateNameLoc = ReadSourceLocation(F, Record, Index);
 7557     SourceLocation EllipsisLoc = ReadSourceLocation(F, Record, Index);
 7589   SourceLocation LAngleLoc = ReadSourceLocation(F, Record, Index);
 7590   SourceLocation RAngleLoc = ReadSourceLocation(F, Record, Index);
 7762 SourceLocation ASTReader::getSourceLocationForDeclID(GlobalDeclID ID) {
 7776   SourceLocation Loc;
 7985     SourceLocation LHS = getLocation(L);
 7986     SourceLocation RHS = getLocation(R);
 7990   bool operator()(SourceLocation LHS, LocalDeclID R) const {
 7991     SourceLocation RHS = getLocation(R);
 7995   bool operator()(LocalDeclID L, SourceLocation RHS) const {
 7996     SourceLocation LHS = getLocation(L);
 8000   SourceLocation getLocation(LocalDeclID ID) const {
 8021   SourceLocation
 8023   SourceLocation EndLoc = BeginLoc.getLocWithOffset(Length);
 8647     llvm::MapVector<NamedDecl *, SourceLocation> &Undefined) {
 8650     SourceLocation Loc =
 8651         SourceLocation::getFromRawEncoding(UndefinedButUsed[Idx++]);
 8657     FieldDecl *, llvm::SmallVector<std::pair<SourceLocation, bool>, 4>> &
 8663       SourceLocation DeleteLoc =
 8664           SourceLocation::getFromRawEncoding(DelayedDeleteExprs[Idx++]);
 8726        SmallVectorImpl<std::pair<Selector, SourceLocation>> &Sels) {
 8736     SourceLocation SelLoc
 8737       = SourceLocation::getFromRawEncoding(ReferencedSelectorsData[I++]);
 8753     SourceLocation Loc
 8754       = SourceLocation::getFromRawEncoding(WeakUndeclaredIdentifiers[I++]);
 8767     VT.Location = SourceLocation::getFromRawEncoding(VTableUses[Idx++]);
 8776        SmallVectorImpl<std::pair<ValueDecl *, SourceLocation>> &Pending) {
 8779     SourceLocation Loc
 8780       = SourceLocation::getFromRawEncoding(PendingInstantiations[Idx++]);
 9338   SourceLocation TemplateLoc = ReadSourceLocation(F, Record, Idx);
 9339   SourceLocation LAngleLoc = ReadSourceLocation(F, Record, Idx);
 9340   SourceLocation RAngleLoc = ReadSourceLocation(F, Record, Idx);
 9388   SourceLocation EllipsisLoc = ReadSourceLocation(F, Record, Idx);
 9428     SourceLocation MemberOrEllipsisLoc = ReadSourceLocation(F, Record, Idx);
 9430     SourceLocation LParenLoc = ReadSourceLocation(F, Record, Idx);
 9431     SourceLocation RParenLoc = ReadSourceLocation(F, Record, Idx);
 9553       SourceLocation ColonColonLoc = ReadSourceLocation(F, Record, Idx);
 9563       SourceLocation ColonColonLoc = ReadSourceLocation(F, Record, Idx);
 9583   SourceLocation beg = ReadSourceLocation(F, Record, Idx);
 9584   SourceLocation end = ReadSourceLocation(F, Record, Idx);
 9712 DiagnosticBuilder ASTReader::Diag(SourceLocation Loc, unsigned DiagID) const {
 9801       SourceLocation CommentLoc = C->getBeginLoc();
10685         SourceLocation FirstLoc;
10697         SourceLocation SecondLoc;
10807           SourceLocation FirstLoc, SecondLoc;
tools/clang/lib/Serialization/ASTReaderDecl.cpp
   85     const SourceLocation ThisDeclLoc;
  114     SourceLocation ReadSourceLocation() {
  259                   DeclID thisDeclID, SourceLocation ThisDeclLoc)
  781     SourceLocation POI = ReadSourceLocation();
  898     SourceLocation POI = ReadSourceLocation();
  914     SourceLocation LAngleLoc, RAngleLoc;
  926     SourceLocation POI = ReadSourceLocation();
  939       SourceLocation POI = ReadSourceLocation();
 1046   SmallVector<SourceLocation, 16> SelLocs;
 1084   SourceLocation lAngleLoc = ReadSourceLocation();
 1085   SourceLocation rAngleLoc = ReadSourceLocation();
 1105   SmallVector<SourceLocation, 16> ProtoLocs;
 1180     SmallVector<SourceLocation, 16> ProtoLocs;
 1244   SmallVector<SourceLocation, 16> ProtoLocs;
 1277   SourceLocation GetterLoc = ReadSourceLocation();
 1280   SourceLocation SetterLoc = ReadSourceLocation();
 1428     SourceLocation POI = ReadSourceLocation();
 1701       SourceLocation Loc = ReadSourceLocation();
 1713         SourceLocation EllipsisLoc = ReadSourceLocation();
 1868     SourceLocation POI = ReadSourceLocation();
 1959   auto *StoredLocs = D->getTrailingObjects<SourceLocation>();
 1959   auto *StoredLocs = D->getTrailingObjects<SourceLocation>();
 2667   SourceLocation readSourceLocation() {
 2711   SourceLocation ScopeLoc = Record.readSourceLocation();
 2792 ASTReader::DeclCursorForID(DeclID ID, SourceLocation &Loc) {
 3611   SourceLocation DeclLoc;
 4292       SourceLocation POI = Record.readSourceLocation();
 4382       SourceLocation POI = ReadSourceLocation();
tools/clang/lib/Serialization/ASTReaderStmt.cpp
   74     SourceLocation ReadSourceLocation() {
  140   SourceLocation TemplateKWLoc = ReadSourceLocation();
  693     SourceLocation Start = ReadSourceLocation();
  694     SourceLocation End = ReadSourceLocation();
  976       SourceLocation DotLoc = ReadSourceLocation();
  977       SourceLocation FieldLoc = ReadSourceLocation();
  986       SourceLocation DotLoc = ReadSourceLocation();
  987       SourceLocation FieldLoc = ReadSourceLocation();
  994       SourceLocation LBracketLoc = ReadSourceLocation();
  995       SourceLocation RBracketLoc = ReadSourceLocation();
 1002       SourceLocation LBracketLoc = ReadSourceLocation();
 1003       SourceLocation EllipsisLoc = ReadSourceLocation();
 1004       SourceLocation RBracketLoc = ReadSourceLocation();
 1296     SourceLocation SuperLoc = ReadSourceLocation();
 1315   SourceLocation *Locs = E->getStoredSelLocs();
tools/clang/lib/Serialization/ASTWriter.cpp
 2479     SourceLocation Loc = MD->getLocation();
 3162     SourceLocation Loc = Diag.SourceMgr->getComposedLoc(FileIDAndFile.first, 0);
 3558     SourceLocation Loc = SelectorAndLocation.second;
 4479   SourceLocation PragmaLoc = SemaRef.getOptimizeOffPragmaLocation();
 4867   SmallVector<std::pair<NamedDecl *, SourceLocation>, 16> Undefined;
 5427 void ASTWriter::AddSourceLocation(SourceLocation Loc, RecordDataImpl &Record) {
 5723   SourceLocation Loc = D->getLocation();
 5738   SourceLocation FileLoc = SM.getFileLoc(Loc);
 5834     AddSourceLocation(SourceLocation::getFromRawEncoding(
 5837         SourceLocation::getFromRawEncoding(DNLoc.CXXOperatorName.EndOpNameLoc));
 5841     AddSourceLocation(SourceLocation::getFromRawEncoding(
 6479   SourceLocation POI;
tools/clang/lib/Serialization/ASTWriterDecl.cpp
  701   SourceLocation *SelLocs = D->getStoredSelLocs();
  745     for (const auto &PL : D->protocol_locs())
  800     for (const auto &PL : D->protocol_locs())
  822   for (const auto &PL : D->protocol_locs())
 1385   ArrayRef<SourceLocation> IdentifierLocs = D->getIdentifierLocs();
 2371   SourceLocation Loc = D->getLocation();
tools/clang/lib/Serialization/ASTWriterStmt.cpp
 1234   SourceLocation *Locs = E->getStoredSelLocs();
tools/clang/lib/Serialization/ModuleManager.cpp
   90                                 SourceLocation ImportLoc) {
  104                          SourceLocation ImportLoc, ModuleFile *ImportedBy,
tools/clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp
  176     SourceLocation Loc = R.getBegin();
  232           SourceLocation L1 =
  236           SourceLocation L2 =
tools/clang/lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp
   75       SourceLocation L = ME->getMemberLoc();
   83       SourceLocation L = IV->getLocation();
tools/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
  652   SourceLocation DomLoc = CE->getArg(0)->getExprLoc();
tools/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp
 1126   SourceLocation SL =
tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
  956   SourceLocation L = FD->getLocation();
tools/clang/lib/StaticAnalyzer/Checkers/NumberObjectConversionChecker.cpp
   79     SourceLocation Loc = CheckIfNull->getBeginLoc();
tools/clang/lib/StaticAnalyzer/Checkers/ObjCUnusedIVarsChecker.cpp
  100       SourceLocation L = FD->getBeginLoc();
tools/clang/lib/StaticAnalyzer/Checkers/PaddingChecker.cpp
  136     auto Location = RD->getLocation();
  322       SourceLocation ILoc = TSD->getPointOfInstantiation();
tools/clang/lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp
   85     SourceLocation L = ARE->getBeginLoc();
   91     SourceLocation L = BD->getBeginLoc();
tools/clang/lib/StaticAnalyzer/Checkers/TraversalChecker.cpp
   49   SourceLocation Loc = Parent->getBeginLoc();
tools/clang/lib/StaticAnalyzer/Checkers/UnreachableCodeChecker.cpp
  148     SourceLocation SL;
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
 1081   SourceLocation NewLocL = NewLoc.asLocation();
 1703     SourceLocation FirstLoc = start->getBeginLoc();
 1704     SourceLocation SecondLoc = end->getBeginLoc();
 2602       std::pair<std::shared_ptr<PathDiagnosticMacroPiece>, SourceLocation>>;
 2623     SourceLocation InstantiationLoc = Loc.isMacroID() ?
 2645     SourceLocation ParentInstantiationLoc = InstantiationLoc.isMacroID() ?
 3055   SourceLocation Start = SignatureSourceRange.getBegin();
 3056   SourceLocation End = Body ? Body->getSourceRange().getBegin()
 3071   SourceLocation Loc = S->getSourceRange().getBegin();
 3074   SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc);
 3132   SourceLocation CallLoc = CP->callEnter.asLocation();
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
  240 static StringRef getMacroName(SourceLocation Loc,
  250 static bool isFunctionMacroExpansion(SourceLocation Loc,
  817         SourceLocation BugLoc = BugPoint->getStmt()->getBeginLoc();
  852   Optional<SourceLocation> matchAssignment(const ExplodedNode *N) {
 1682     SourceLocation TerminatorLoc = CurTerminatorStmt->getBeginLoc();
 1684       SourceLocation BugLoc = BugPoint->getStmt()->getBeginLoc();
 2333     SourceLocation BeginLoc = OriginalExpr->getBeginLoc();
 2334     SourceLocation EndLoc = OriginalExpr->getEndLoc();
tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp
  351   SourceLocation Loc = getSourceRange().getBegin();
 1112   SourceLocation InterfLoc = IDecl->getEndOfDefinitionLoc();
tools/clang/lib/StaticAnalyzer/Core/CheckerContext.cpp
   92 StringRef CheckerContext::getMacroNameOrSpelling(SourceLocation &Loc) {
tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
  943   SourceLocation Loc =
 1001   SourceLocation InstantiationStart = SM.getExpansionLoc(Range.getBegin());
 1004   SourceLocation InstantiationEnd = SM.getExpansionLoc(Range.getEnd());
 1026   SourceLocation E =
tools/clang/lib/StaticAnalyzer/Core/IssueHash.cpp
  145   SourceLocation StartOfLine =
tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
  182 getExpandedMacro(SourceLocation MacroLoc, const Preprocessor &PP,
  879     SourceLocation MacroLoc,
  906 static MacroNameAndArgs getMacroNameAndArgs(SourceLocation ExpanLoc,
  919                                                 SourceLocation Loc);
  926 getExpandedMacro(SourceLocation MacroLoc, const Preprocessor &PP,
  947     SourceLocation MacroLoc,
 1051 static MacroNameAndArgs getMacroNameAndArgs(SourceLocation ExpanLoc,
 1204                                                 SourceLocation Loc) {
tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
  753   SourceLocation SL = Body ? Body->getBeginLoc() : D->getLocation();
tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp
  175   SourceLocation SLoc = N->getSourceRange().getBegin();
  998   SourceLocation BeginLoc = Range.getBegin();
  999   SourceLocation EndLoc = Lexer::getLocForEndOfToken(
tools/clang/lib/Tooling/Core/Diagnostic.cpp
   25                                      SourceLocation Loc)
tools/clang/lib/Tooling/Core/Lookup.cpp
  128                                                SourceLocation UseLoc) {
  184                                        SourceLocation UseLoc,
tools/clang/lib/Tooling/Core/Replacement.cpp
   52 Replacement::Replacement(const SourceManager &Sources, SourceLocation Start,
   75   const SourceLocation Start =
  121                                         SourceLocation Start, unsigned Length,
  137   SourceLocation SpellingBegin = Sources.getSpellingLoc(Range.getBegin());
  138   SourceLocation SpellingEnd = Sources.getSpellingLoc(Range.getEnd());
tools/clang/lib/Tooling/Refactoring/ASTSelection.cpp
   27   SourceLocation LocAfterEnd = Lexer::findLocationAfterToken(
   87     SourceLocation FileLoc;
  141     SourceLocation End = Range.getEnd();
  145     if (!SourceLocation::isPairOfFileLocations(Range.getBegin(), End))
  170   const SourceLocation SelectionBegin, SelectionEnd;
tools/clang/lib/Tooling/Refactoring/AtomicChange.cpp
  197                            SourceLocation KeyPosition) {
  258 llvm::Error AtomicChange::replace(const SourceManager &SM, SourceLocation Loc,
  263 llvm::Error AtomicChange::insert(const SourceManager &SM, SourceLocation Loc,
tools/clang/lib/Tooling/Refactoring/Extract/Extract.cpp
   47 SourceLocation computeFunctionExtractionLocation(const Decl *D) {
  136   SourceLocation ExtractedDeclLocation =
tools/clang/lib/Tooling/Refactoring/Extract/SourceExtraction.cpp
   21 bool isSemicolonAtLocation(SourceLocation TokenLoc, const SourceManager &SM,
   60 bool areOnSameLine(SourceLocation Loc1, SourceLocation Loc2,
   60 bool areOnSameLine(SourceLocation Loc1, SourceLocation Loc2,
   97   SourceLocation End = ExtractedRange.getEnd();
tools/clang/lib/Tooling/Refactoring/Rename/SymbolOccurrences.cpp
   17                                    ArrayRef<SourceLocation> Locations)
   30       SourceLocation::getFromRawEncoding(Locations.size()));
tools/clang/lib/Tooling/Refactoring/Rename/USRFinder.cpp
   36   explicit NamedDeclOccurrenceFindingVisitor(const SourceLocation Point,
   47       SourceLocation Start = Range.getBegin();
   48       SourceLocation End = Range.getEnd();
   61   bool isPointWithin(const SourceLocation Start, const SourceLocation End) {
   61   bool isPointWithin(const SourceLocation Start, const SourceLocation End) {
   70   const SourceLocation Point; // The location to find the NamedDecl.
   77                                 const SourceLocation Point) {
   85     SourceLocation StartLoc = CurrDecl->getBeginLoc();
   86     SourceLocation EndLoc = CurrDecl->getEndLoc();
tools/clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp
  215     const SourceLocation Point = SourceMgr.getLocForStartOfFile(MainFileID)
tools/clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp
   43 bool IsValidEditLoc(const clang::SourceManager& SM, clang::SourceLocation Loc) {
   70       SourceLocation Loc = NameRanges[0].getBegin();
   87   void checkAndAddLocation(SourceLocation Loc) {
   88     const SourceLocation BeginLoc = Loc;
   89     const SourceLocation EndLoc = Lexer::getLocForEndOfToken(
  109 SourceLocation StartLocationForType(TypeLoc TL) {
  122 SourceLocation EndLocationForType(TypeLoc TL) {
  164     SourceLocation Begin;
  166     SourceLocation End;
  199       auto StartLoc = Decl->getLocation();
  200       auto EndLoc = StartLoc;
  216     auto StartLoc = Expr->getMemberLoc();
  217     auto EndLoc = Expr->getMemberLoc();
  237           auto Loc = Initializer->getSourceLocation();
  257     auto StartLoc = Expr->getBeginLoc();
  260     SourceLocation EndLoc = Expr->hasExplicitTemplateArgs()
  387         auto StartLoc = StartLocationForType(Loc);
  388         auto EndLoc = EndLocationForType(Loc);
  422         auto StartLoc = StartLocationForType(TargetLoc);
  423         auto EndLoc = EndLocationForType(TargetLoc);
tools/clang/lib/Tooling/Syntax/BuildTree.cpp
   56   void markChildToken(SourceLocation Loc, tok::TokenKind Kind, NodeRole R);
   75   llvm::ArrayRef<syntax::Token> getRange(SourceLocation First,
   76                                          SourceLocation Last) const {
   92   const syntax::Token *findToken(SourceLocation L) const;
  254 void syntax::TreeBuilder::markChildToken(SourceLocation Loc,
  261 const syntax::Token *syntax::TreeBuilder::findToken(SourceLocation L) const {
tools/clang/lib/Tooling/Syntax/Tokens.cpp
   38 syntax::Token::Token(SourceLocation Location, unsigned Length,
   84 FileRange::FileRange(const SourceManager &SM, SourceLocation BeginLoc,
   92 FileRange::FileRange(const SourceManager &SM, SourceLocation BeginLoc,
   93                      SourceLocation EndLoc) {
  307   SourceLocation LastExpansionEnd;
  393     auto L = Result.ExpandedTokens[I].location();
  426       auto NextL = Result.ExpandedTokens[I + 1].location();
  487   void fillGapUntil(TokenBuffer::MarkedFile &File, SourceLocation L,
  520   llvm::Optional<SourceLocation>
  524       auto L = File.SpelledTokens[NextSpelled].location();
tools/clang/lib/Tooling/Transformer/RangeSelector.cpp
   65 static SourceLocation findPreviousTokenStart(SourceLocation Start,
   65 static SourceLocation findPreviousTokenStart(SourceLocation Start,
   71   SourceLocation BeforeStart = Start.getLocWithOffset(-1);
   80 static SourceLocation findPreviousTokenKind(SourceLocation Start,
   80 static SourceLocation findPreviousTokenKind(SourceLocation Start,
   85     SourceLocation L = findPreviousTokenStart(Start, SM, LangOpts);
  100 static SourceLocation findOpenParen(const CallExpr &E, const SourceManager &SM,
  102   SourceLocation EndLoc =
  159     SourceLocation B = BeginRange->getBegin();
  160     SourceLocation E = EndRange->getEnd();
  195       SourceLocation L = D->getLocation();
  209       SourceLocation L = E->getLocation();
  215       SourceLocation L = I->getMemberLocation();
tools/clang/lib/Tooling/Transformer/RewriteRule.cpp
  146 SourceLocation transformer::detail::getRuleMatchLoc(const MatchResult &Result) {
tools/clang/tools/arcmt-test/arcmt-test.cpp
   73 static void printSourceLocation(SourceLocation loc, ASTContext &Ctx,
   91   void insert(SourceLocation loc, StringRef text) override {
  307 static void printSourceLocation(SourceLocation loc, ASTContext &Ctx,
  329   SourceLocation end = range.getEnd();
tools/clang/tools/c-index-test/core_main.cpp
   99                            SourceLocation Loc, ASTNodeInfo ASTNode) override {
  137                              SymbolRoleSet Roles, SourceLocation Loc) override {
  160                             SymbolRoleSet Roles, SourceLocation Loc) override {
tools/clang/tools/clang-extdef-mapping/ClangExtDefMapGen.cpp
   50   void addIfInMain(const DeclaratorDecl *DD, SourceLocation defStart);
   78                                          SourceLocation defStart) {
tools/clang/tools/clang-format/ClangFormat.cpp
  210       SourceLocation Start = Sources.translateLineCol(ID, FromLine, 1);
  211       SourceLocation End = Sources.translateLineCol(ID, ToLine, UINT_MAX);
  233     SourceLocation Start =
  235     SourceLocation End;
  323       SourceLocation LineBegin =
  325       SourceLocation NextLineBegin = Sources.translateFileLineCol(
tools/clang/tools/clang-import-test/clang-import-test.cpp
   99   static void PrintSourceForLocation(const SourceLocation &Loc,
tools/clang/tools/clang-refactor/ClangRefactor.cpp
  127     SourceLocation Start = SM.getMacroArgExpandedLocation(
  129     SourceLocation End = SM.getMacroArgExpandedLocation(
tools/clang/tools/clang-refactor/TestSupport.cpp
   51   SourceLocation FileLoc = SM.getLocForStartOfFile(FID);
   55       SourceLocation Start =
   57       SourceLocation End =
  315   Lexer Lex(SourceLocation::getFromRawEncoding(0), LangOpts, Source.begin(),
tools/clang/tools/extra/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp
  199     const SourceLocation BeginLoc =
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
   40 SourceLocation startLocationForType(TypeLoc TLoc) {
   53 SourceLocation endLocationForType(TypeLoc TLoc) {
   97 getLexerStartingFromLoc(SourceLocation Loc, const SourceManager &SM,
  118 static SourceLocation getStartOfNextLine(SourceLocation Loc,
  118 static SourceLocation getStartOfNextLine(SourceLocation Loc,
  128   auto End = Loc.getLocWithOffset(Line.size());
  158 tooling::Replacement createReplacement(SourceLocation Start, SourceLocation End,
  158 tooling::Replacement createReplacement(SourceLocation Start, SourceLocation End,
  183     SourceLocation Start, SourceLocation End, llvm::StringRef ReplacementText,
  183     SourceLocation Start, SourceLocation End, llvm::StringRef ReplacementText,
  192 tooling::Replacement createInsertion(SourceLocation Loc,
  278                              const DeclContext *DeclCtx, SourceLocation Loc) {
  279   SourceLocation DeclLoc = SM.getSpellingLoc(D->getBeginLoc());
  562     SourceLocation Start = Specifier->getBeginLoc();
  563     SourceLocation End = endLocationForType(Specifier->getTypeLoc());
  658 static SourceLocation getLocAfterNamespaceLBrace(const NamespaceDecl *NsDecl,
  686   SourceLocation Start =
  703   SourceLocation InsertionLoc = Start;
  705     SourceLocation LocAfterNs = getStartOfNextLine(
  737   SourceLocation Start = FwdDecl->getBeginLoc();
  738   SourceLocation End = FwdDecl->getEndLoc();
  740   SourceLocation AfterSemi = Lexer::findLocationAfterToken(
  773     const DeclContext *DeclCtx, SourceLocation Start, SourceLocation End,
  773     const DeclContext *DeclCtx, SourceLocation Start, SourceLocation End,
  890     const ast_matchers::MatchFinder::MatchResult &Result, SourceLocation Start,
  891     SourceLocation End, TypeLoc Type) {
  908     auto ExpansionLoc = Result.SourceManager->getExpansionLoc(D->getBeginLoc());
  939   SourceLocation Start = UsingDeclaration->getBeginLoc();
  940   SourceLocation End = UsingDeclaration->getEndLoc();
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.h
   74       const DeclContext *DeclContext, SourceLocation Start, SourceLocation End,
   74       const DeclContext *DeclContext, SourceLocation Start, SourceLocation End,
   78                   SourceLocation Start, SourceLocation End, TypeLoc Type);
   78                   SourceLocation Start, SourceLocation End, TypeLoc Type);
tools/clang/tools/extra/clang-include-fixer/IncludeFixer.cpp
  122                                      StringRef Code, SourceLocation StartOfFile,
  137   auto Begin = StartOfFile.getLocWithOffset(Placed.getOffset());
  138   auto End = Begin.getLocWithOffset(std::max(0, (int)Placed.getLength() - 1));
  150     clang::SourceLocation Loc, clang::QualType T) {
  168     SourceLocation StartOfFile =
  289     SourceLocation StartOfFile = SM.getLocForStartOfFile(FID);
tools/clang/tools/extra/clang-include-fixer/IncludeFixer.h
   99   bool MaybeDiagnoseMissingCompleteType(clang::SourceLocation Loc,
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/FindAllMacros.cpp
   52 void FindAllMacros::Ifdef(SourceLocation Loc, const Token &MacroNameTok,
   57 void FindAllMacros::Ifndef(SourceLocation Loc, const Token &MacroNameTok,
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/FindAllMacros.h
   38   void Ifdef(SourceLocation Loc, const Token &MacroNameTok,
   41   void Ifndef(SourceLocation Loc, const Token &MacroNameTok,
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp
  100   SourceLocation Loc = SM.getExpansionLoc(ND->getLocation());
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/PathConfig.cpp
   16 std::string getIncludePath(const SourceManager &SM, SourceLocation Loc,
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/PathConfig.h
   30 std::string getIncludePath(const SourceManager &SM, SourceLocation Loc,
tools/clang/tools/extra/clang-move/Move.cpp
  115   auto ExpansionLoc = SourceManager.getExpansionLoc(Node.getBeginLoc());
  131   void InclusionDirective(SourceLocation HashLoc, const Token & /*IncludeTok*/,
  278 SourceLocation getLocForEndOfDecl(const Decl *D,
  284   auto EndExpansionLoc = SM.getExpansionRange(D->getEndLoc()).getEnd();
  301   SourceLocation EndLoc = EndExpansionLoc.getLocWithOffset(Line.size());
  340   auto ExpansionLoc = SM.getExpansionLoc(D->getBeginLoc());
  493   auto Loc = Decl->getLocation();
  851   auto Begin = SM.getLocForStartOfFile(ID);
  852   auto End = SM.getLocForEndOfFile(ID);
tools/clang/tools/extra/clang-tidy/ClangTidy.cpp
  117     SourceLocation Loc = getLocation(Message.FilePath, Message.FileOffset);
  120     SmallVector<std::pair<SourceLocation, bool>, 4> FixLocations;
  140             SourceLocation FixLoc;
  237   SourceLocation getLocation(StringRef FilePath, unsigned Offset) {
  257         SourceLocation FixLoc =
  259         SourceLocation FixEndLoc = FixLoc.getLocWithOffset(Repl.getLength());
  271     SourceLocation Loc = getLocation(Message.FilePath, Message.FileOffset);
tools/clang/tools/extra/clang-tidy/ClangTidyCheck.cpp
   21 DiagnosticBuilder ClangTidyCheck::diag(SourceLocation Loc, StringRef Message,
tools/clang/tools/extra/clang-tidy/ClangTidyCheck.h
   93   DiagnosticBuilder diag(SourceLocation Loc, StringRef Description,
tools/clang/tools/extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
  160     StringRef CheckName, SourceLocation Loc, StringRef Description,
  295 static bool LineIsMarkedWithNOLINT(const SourceManager &SM, SourceLocation Loc,
  342                                           SourceLocation Loc, unsigned DiagID,
  527 void ClangTidyDiagnosticConsumer::checkFilters(SourceLocation Location,
tools/clang/tools/extra/clang-tidy/ClangTidyDiagnosticConsumer.h
   96   DiagnosticBuilder diag(StringRef CheckName, SourceLocation Loc,
  173                                                        SourceLocation Loc) {
  254   void checkFilters(SourceLocation Location, const SourceManager &Sources);
tools/clang/tools/extra/clang-tidy/ExpandModularHeadersPPCallbacks.cpp
  119 void ExpandModularHeadersPPCallbacks::parseToLocation(SourceLocation Loc) {
  141     SourceLocation Loc, FileChangeReason Reason,
  150     SourceLocation DirectiveLoc, const Token &IncludeToken,
  171 void ExpandModularHeadersPPCallbacks::Ident(SourceLocation Loc, StringRef) {
  174 void ExpandModularHeadersPPCallbacks::PragmaDirective(SourceLocation Loc,
  178 void ExpandModularHeadersPPCallbacks::PragmaComment(SourceLocation Loc,
  183 void ExpandModularHeadersPPCallbacks::PragmaDetectMismatch(SourceLocation Loc,
  188 void ExpandModularHeadersPPCallbacks::PragmaDebug(SourceLocation Loc,
  192 void ExpandModularHeadersPPCallbacks::PragmaMessage(SourceLocation Loc,
  198 void ExpandModularHeadersPPCallbacks::PragmaDiagnosticPush(SourceLocation Loc,
  202 void ExpandModularHeadersPPCallbacks::PragmaDiagnosticPop(SourceLocation Loc,
  206 void ExpandModularHeadersPPCallbacks::PragmaDiagnostic(SourceLocation Loc,
  212 void ExpandModularHeadersPPCallbacks::HasInclude(SourceLocation Loc, StringRef,
  218     SourceLocation NameLoc, const IdentifierInfo *, SourceLocation StateLoc,
  218     SourceLocation NameLoc, const IdentifierInfo *, SourceLocation StateLoc,
  223 void ExpandModularHeadersPPCallbacks::PragmaWarning(SourceLocation Loc,
  227 void ExpandModularHeadersPPCallbacks::PragmaWarningPush(SourceLocation Loc,
  231 void ExpandModularHeadersPPCallbacks::PragmaWarningPop(SourceLocation Loc) {
  235     SourceLocation Loc) {
  239     SourceLocation Loc) {
  265     SourceRange Range, SourceLocation EndifLoc) {
  269 void ExpandModularHeadersPPCallbacks::If(SourceLocation Loc, SourceRange,
  273 void ExpandModularHeadersPPCallbacks::Elif(SourceLocation Loc, SourceRange,
  274                                            ConditionValueKind, SourceLocation) {
  277 void ExpandModularHeadersPPCallbacks::Ifdef(SourceLocation Loc, const Token &,
  281 void ExpandModularHeadersPPCallbacks::Ifndef(SourceLocation Loc, const Token &,
  285 void ExpandModularHeadersPPCallbacks::Else(SourceLocation Loc, SourceLocation) {
  285 void ExpandModularHeadersPPCallbacks::Else(SourceLocation Loc, SourceLocation) {
  288 void ExpandModularHeadersPPCallbacks::Endif(SourceLocation Loc,
  289                                             SourceLocation) {
tools/clang/tools/extra/clang-tidy/ExpandModularHeadersPPCallbacks.h
   55   void parseToLocation(SourceLocation Loc);
   58   void FileChanged(SourceLocation Loc, FileChangeReason Reason,
   62   void InclusionDirective(SourceLocation DirectiveLoc,
   74   void Ident(SourceLocation Loc, StringRef) override;
   75   void PragmaDirective(SourceLocation Loc, PragmaIntroducerKind) override;
   76   void PragmaComment(SourceLocation Loc, const IdentifierInfo *,
   78   void PragmaDetectMismatch(SourceLocation Loc, StringRef, StringRef) override;
   79   void PragmaDebug(SourceLocation Loc, StringRef) override;
   80   void PragmaMessage(SourceLocation Loc, StringRef, PragmaMessageKind,
   82   void PragmaDiagnosticPush(SourceLocation Loc, StringRef) override;
   83   void PragmaDiagnosticPop(SourceLocation Loc, StringRef) override;
   84   void PragmaDiagnostic(SourceLocation Loc, StringRef, diag::Severity,
   86   void HasInclude(SourceLocation Loc, StringRef, bool, Optional<FileEntryRef> ,
   88   void PragmaOpenCLExtension(SourceLocation NameLoc, const IdentifierInfo *,
   89                              SourceLocation StateLoc, unsigned) override;
   90   void PragmaWarning(SourceLocation Loc, StringRef, ArrayRef<int>) override;
   91   void PragmaWarningPush(SourceLocation Loc, int) override;
   92   void PragmaWarningPop(SourceLocation Loc) override;
   93   void PragmaAssumeNonNullBegin(SourceLocation Loc) override;
   94   void PragmaAssumeNonNullEnd(SourceLocation Loc) override;
  103   void SourceRangeSkipped(SourceRange Range, SourceLocation EndifLoc) override;
  104   void If(SourceLocation Loc, SourceRange, ConditionValueKind) override;
  105   void Elif(SourceLocation Loc, SourceRange, ConditionValueKind,
  106             SourceLocation) override;
  107   void Ifdef(SourceLocation Loc, const Token &,
  109   void Ifndef(SourceLocation Loc, const Token &,
  111   void Else(SourceLocation Loc, SourceLocation) override;
  111   void Else(SourceLocation Loc, SourceLocation) override;
  112   void Endif(SourceLocation Loc, SourceLocation) override;
  112   void Endif(SourceLocation Loc, SourceLocation) override;
tools/clang/tools/extra/clang-tidy/abseil/AbseilMatcher.h
   35   SourceLocation Loc = SourceManager.getSpellingLoc(Node.getBeginLoc());
tools/clang/tools/extra/clang-tidy/abseil/DurationRewriter.cpp
  309   SourceLocation Loc = E->getBeginLoc();
tools/clang/tools/extra/clang-tidy/abseil/UpgradeDurationConversionsCheck.cpp
  123   SourceLocation Loc = ArgExpr->getBeginLoc();
tools/clang/tools/extra/clang-tidy/android/CloexecCheck.cpp
   65   SourceLocation EndLoc =
tools/clang/tools/extra/clang-tidy/android/ComparisonInTempFailureRetryCheck.cpp
   31   SourceLocation LocStart = Node.getBeginLoc();
   33     SourceLocation Invocation = SM.getImmediateMacroCallerLoc(LocStart);
tools/clang/tools/extra/clang-tidy/boost/UseToStringCheck.cpp
   58   auto Loc = Call->getBeginLoc();
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp
   63 static std::vector<std::pair<SourceLocation, StringRef>>
   65   std::vector<std::pair<SourceLocation, StringRef>> Comments;
  107 static std::vector<std::pair<SourceLocation, StringRef>>
  108 getCommentsBeforeLoc(ASTContext *Ctx, SourceLocation Loc) {
  109   std::vector<std::pair<SourceLocation, StringRef>> Comments;
  246                                          SourceLocation ArgBeginLoc,
  283     std::vector<std::pair<SourceLocation, StringRef>> Comments;
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.h
   55                      SourceLocation ArgBeginLoc,
tools/clang/tools/extra/clang-tidy/bugprone/AssertSideEffectCheck.cpp
  104   SourceLocation Loc = Result.Nodes.getNodeAs<Stmt>("condStmt")->getBeginLoc();
tools/clang/tools/extra/clang-tidy/bugprone/BranchCloneCheck.cpp
  135           SourceLocation End =
  204         SourceLocation EndLoc = (EndCurrent - 1)->back()->getEndLoc();
tools/clang/tools/extra/clang-tidy/bugprone/CopyConstructorInitCheck.cpp
  103   SourceLocation FixItLoc;
tools/clang/tools/extra/clang-tidy/bugprone/DynamicStaticInitializersCheck.cpp
   56   SourceLocation Loc = Var->getLocation();
tools/clang/tools/extra/clang-tidy/bugprone/InaccurateEraseCheck.cpp
   55   const SourceLocation Loc = MemberCall->getBeginLoc();
   64     const SourceLocation EndLoc = Lexer::getLocForEndOfToken(
tools/clang/tools/extra/clang-tidy/bugprone/MacroParenthesesCheck.cpp
  113   SourceLocation Loc;
tools/clang/tools/extra/clang-tidy/bugprone/MultipleStatementMacroCheck.cpp
   45 ExpansionRanges getExpansionRanges(SourceLocation Loc,
   75   SourceLocation OuterLoc = Outer->getBeginLoc();
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp
  150 static SourceLocation exprLocEnd(const Expr *E,
tools/clang/tools/extra/clang-tidy/bugprone/PosixReturnCheck.cpp
   65     SourceLocation OperatorLoc = LessThanZeroOp->getOperatorLoc();
tools/clang/tools/extra/clang-tidy/bugprone/StringConstructorCheck.cpp
  117   SourceLocation Loc = E->getBeginLoc();
tools/clang/tools/extra/clang-tidy/bugprone/StringIntegerAssignmentCheck.cpp
  137   SourceLocation Loc = Argument->getBeginLoc();
  163   SourceLocation EndLoc = Lexer::getLocForEndOfToken(
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousMissingCommaCheck.cpp
   40   SourceLocation FirstToken = Lit->getStrTokenLoc(0);
   45     SourceLocation Token = Lit->getStrTokenLoc(TokNum);
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousSemicolonCheck.cpp
   36   SourceLocation LocStart = Semicolon->getBeginLoc();
   54   SourceLocation LocEnd = Semicolon->getEndLoc();
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousStringCompareCheck.cpp
  175     SourceLocation EndLoc = Lexer::getLocForEndOfToken(
  185     SourceLocation EndLoc = Lexer::getLocForEndOfToken(
  188     SourceLocation NotLoc = E->getBeginLoc();
tools/clang/tools/extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp
  358   SourceLocation UseLoc = Use.DeclRef->getExprLoc();
  359   SourceLocation MoveLoc = MovingCall->getExprLoc();
tools/clang/tools/extra/clang-tidy/cert/PostfixOperatorCheck.cpp
   43   SourceLocation Location = ReturnRange.getBegin();
tools/clang/tools/extra/clang-tidy/cert/StaticObjectExceptionCheck.cpp
   49   SourceLocation FuncLocation = Func->getLocation();
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.cpp
  178 void NarrowingConversionsCheck::diagNarrowType(SourceLocation SourceLoc,
  186     SourceLocation SourceLoc, const Expr &Lhs, const Expr &Rhs) {
  193     SourceLocation SourceLoc, const Expr &Lhs, const Expr &Rhs,
  202     SourceLocation SourceLoc, const Expr &Lhs, const Expr &Rhs,
  210 void NarrowingConversionsCheck::diagNarrowConstant(SourceLocation SourceLoc,
  217 void NarrowingConversionsCheck::diagConstantCast(SourceLocation SourceLoc,
  225     const ASTContext &Context, SourceLocation SourceLoc, const Expr &Lhs,
  236                                                    SourceLocation SourceLoc,
  260     const ASTContext &Context, SourceLocation SourceLoc, const Expr &Lhs,
  270     const ASTContext &Context, SourceLocation SourceLoc, const Expr &Lhs,
  285     const ASTContext &Context, SourceLocation SourceLoc, const Expr &Lhs,
  310     const ASTContext &Context, SourceLocation SourceLoc, const Expr &Lhs,
  316     const ASTContext &Context, SourceLocation SourceLoc, const Expr &Lhs,
  326                                                    SourceLocation SourceLoc,
  352                                                      SourceLocation SourceLoc,
  402   SourceLocation SourceLoc = Lhs.getExprLoc();
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.h
   32   void diagNarrowType(SourceLocation SourceLoc, const Expr &Lhs,
   35   void diagNarrowTypeToSignedInt(SourceLocation SourceLoc, const Expr &Lhs,
   38   void diagNarrowIntegerConstant(SourceLocation SourceLoc, const Expr &Lhs,
   41   void diagNarrowIntegerConstantToSignedInt(SourceLocation SourceLoc,
   46   void diagNarrowConstant(SourceLocation SourceLoc, const Expr &Lhs,
   49   void diagConstantCast(SourceLocation SourceLoc, const Expr &Lhs,
   53                                 SourceLocation SourceLoc, const Expr &Lhs,
   56   void handleIntegralCast(const ASTContext &Context, SourceLocation SourceLoc,
   60                                SourceLocation SourceLoc, const Expr &Lhs,
   64                                 SourceLocation SourceLoc, const Expr &Lhs,
   68                                 SourceLocation SourceLoc, const Expr &Lhs,
   72                                SourceLocation SourceLoc, const Expr &Lhs,
   76                                      SourceLocation SourceLoc, const Expr &Lhs,
   79   void handleFloatingCast(const ASTContext &Context, SourceLocation SourceLoc,
   82   void handleBinaryOperator(const ASTContext &Context, SourceLocation SourceLoc,
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp
   82 SourceLocation getLocationForEndOfToken(const ASTContext &Context,
   83                                         SourceLocation Location) {
  113   SourceLocation getLocation(const ASTContext &Context,
  118     SourceLocation Location;
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/SpecialMemberFunctionsCheck.h
   43   using ClassDefId = std::pair<SourceLocation, std::string>;
   75         clang::SourceLocation::getFromRawEncoding(static_cast<unsigned>(-1)),
   81         clang::SourceLocation::getFromRawEncoding(static_cast<unsigned>(-2)),
tools/clang/tools/extra/clang-tidy/fuchsia/DefaultArgumentsDeclarationsCheck.cpp
   39   SourceLocation StartLocation =
tools/clang/tools/extra/clang-tidy/fuchsia/OverloadedOperatorCheck.cpp
   39   SourceLocation Loc = D->getBeginLoc();
tools/clang/tools/extra/clang-tidy/fuchsia/RestrictSystemIncludesCheck.cpp
   29   void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
   40     IncludeDirective(SourceLocation Loc, CharSourceRange Range,
   45     SourceLocation Loc;      // '#' location in the include directive
   60     SourceLocation HashLoc, const Token &IncludeTok, StringRef FileName,
tools/clang/tools/extra/clang-tidy/google/AvoidNSObjectNewCheck.cpp
   27   SourceLocation ReceiverLocation = Expr->getReceiverRange().getBegin();
   31   SourceLocation SelectorLocation = Expr->getSelectorStartLoc();
tools/clang/tools/extra/clang-tidy/google/AvoidThrowingObjCExceptionCheck.cpp
   40   auto SourceLoc = MatchedStmt == nullptr ? MatchedExpr->getSelectorStartLoc()
tools/clang/tools/extra/clang-tidy/google/ExplicitConstructorCheck.cpp
   44                              SourceLocation StartLoc, SourceLocation EndLoc,
   44                              SourceLocation StartLoc, SourceLocation EndLoc,
   95     SourceLocation Loc = Conversion->getLocation();
  145   SourceLocation Loc = Ctor->getLocation();
tools/clang/tools/extra/clang-tidy/google/IntegerTypesCheck.cpp
   23 static Token getTokenAtLoc(SourceLocation Loc,
   76   SourceLocation Loc = TL.getBeginLoc();
tools/clang/tools/extra/clang-tidy/google/UnnamedNamespaceInHeaderCheck.cpp
   50   SourceLocation Loc = N->getBeginLoc();
tools/clang/tools/extra/clang-tidy/google/UpgradeGoogletestCaseCheck.cpp
   78   void Ifdef(SourceLocation Loc, const Token &MacroNameTok,
   83   void Ifndef(SourceLocation Loc, const Token &MacroNameTok,
   92                  SourceLocation Loc, CheckAction Action) {
tools/clang/tools/extra/clang-tidy/google/UsingNamespaceDirectiveCheck.cpp
   32   SourceLocation Loc = U->getBeginLoc();
tools/clang/tools/extra/clang-tidy/hicpp/NoAssemblerCheck.cpp
   33   SourceLocation ASMLocation;
tools/clang/tools/extra/clang-tidy/hicpp/SignedBitwiseCheck.cpp
   71   SourceLocation Location;
tools/clang/tools/extra/clang-tidy/llvm/IncludeOrderCheck.cpp
   27   void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
   37     SourceLocation Loc;    ///< '#' location in the include directive
   78     SourceLocation HashLoc, const Token &IncludeTok, StringRef FileName,
  159         SourceLocation FromLoc = CopyFrom.Range.getBegin();
  165         SourceLocation ToLoc = FileDirectives[I].Range.getBegin();
tools/clang/tools/extra/clang-tidy/llvm/PreferIsaOrDynCastInConditionalsCheck.cpp
   73     SourceLocation StartLoc = MatchedDecl->getCallee()->getExprLoc();
   74     SourceLocation EndLoc =
   83     SourceLocation StartLoc = MatchedDecl->getCallee()->getExprLoc();
   84     SourceLocation EndLoc =
tools/clang/tools/extra/clang-tidy/llvm/TwineLocalCheck.cpp
   49       SourceLocation EndLoc = Lexer::getLocForEndOfToken(
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp
  325   SourceLocation Loc = Node.getExprLoc();
  613   SourceLocation LhsLoc = LhsExpr->getExprLoc();
  614   SourceLocation RhsLoc = RhsExpr->getExprLoc();
  631   SourceLocation LhsLoc = LhsExpr->getExprLoc();
  632   SourceLocation RhsLoc = RhsExpr->getExprLoc();
  856     SourceLocation Loc = ComparisonOperator->getOperatorLoc();
  887     SourceLocation Loc = IneffectiveOperator->getOperatorLoc();
 1024     SourceLocation OperatorLoc = NegateOperator->getOperatorLoc();
 1029     SourceLocation LogicalNotLocation = OperatorLoc.getLocWithOffset(1);
tools/clang/tools/extra/clang-tidy/misc/StaticAssertCheck.cpp
   90   SourceLocation AssertExpansionLoc = CondStmt->getBeginLoc();
  105     SourceLocation FalseLiteralLoc =
  117   SourceLocation AssertLoc = SM.getImmediateMacroCallerLoc(AssertExpansionLoc);
  120   SourceLocation LastParenLoc;
  143 SourceLocation StaticAssertCheck::getLastParenLoc(const ASTContext *ASTCtx,
  144                                                   SourceLocation AssertLoc) {
tools/clang/tools/extra/clang-tidy/misc/StaticAssertCheck.h
   32   SourceLocation getLastParenLoc(const ASTContext *ASTCtx,
   33                                  SourceLocation AssertLoc);
tools/clang/tools/extra/clang-tidy/modernize/ConcatNestedNamespacesCheck.cpp
   20                                 SourceLocation Loc1, SourceLocation Loc2) {
   20                                 SourceLocation Loc1, SourceLocation Loc2) {
tools/clang/tools/extra/clang-tidy/modernize/DeprecatedHeadersCheck.cpp
   28   void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
   95     SourceLocation HashLoc, const Token &IncludeTok, StringRef FileName,
tools/clang/tools/extra/clang-tidy/modernize/DeprecatedIosBaseAliasesCheck.cpp
   53   SourceLocation IoStateLoc = TL->getBeginLoc();
   63   SourceLocation EndLoc = IoStateLoc.getLocWithOffset(TypeName.size() - 1);
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.cpp
  484   SourceLocation Begin = U.Range.getBegin();
  577     SourceLocation ArrowLoc = Lexer::getLocForEndOfToken(
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.h
  374   llvm::SmallSet<SourceLocation, 8> UsageLocations;
tools/clang/tools/extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp
  147   SourceLocation ConstructCallStart = Construct->getExprLoc();
  176   SourceLocation ConstructCallEnd;
  213   SourceLocation OperatorLoc = Expr->getOperatorLoc();
  214   SourceLocation ResetCallStart = Reset->getExprLoc();
  215   SourceLocation ExprStart = Expr->getBeginLoc();
  216   SourceLocation ExprEnd =
  273   SourceLocation NewStart = NewRange.getBegin();
  274   SourceLocation NewEnd = NewRange.getEnd();
tools/clang/tools/extra/clang-tidy/modernize/RedundantVoidArgCheck.cpp
  104     SourceLocation Start = Function->getBeginLoc();
  105     SourceLocation End = Function->getEndLoc();
  180   SourceLocation VoidLoc = VoidToken.getLocation();
  205     SourceLocation Begin = Var->getBeginLoc();
  207       SourceLocation InitStart =
tools/clang/tools/extra/clang-tidy/modernize/ReplaceAutoPtrCheck.cpp
  170   SourceLocation AutoPtrLoc;
  194   SourceLocation EndLoc =
tools/clang/tools/extra/clang-tidy/modernize/ReturnBracedInitListCheck.cpp
   52   SourceLocation Loc = MatchedConstructExpr->getExprLoc();
tools/clang/tools/extra/clang-tidy/modernize/UnaryStaticAssertCheck.cpp
   31   SourceLocation Loc = MatchedDecl->getLocation();
tools/clang/tools/extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp
  246   SourceLocation StartLoc = Field->getBeginLoc();
  250   SourceLocation FieldEnd =
  253   SourceLocation LParenEnd = Lexer::getLocForEndOfToken(
tools/clang/tools/extra/clang-tidy/modernize/UseEmplaceCheck.cpp
  151   const SourceLocation ExprBegin =
tools/clang/tools/extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp
  298   SourceLocation Location = SpecialFunctionDecl->getLocation();
tools/clang/tools/extra/clang-tidy/modernize/UseEqualsDeleteCheck.cpp
   60     SourceLocation EndLoc = Lexer::getLocForEndOfToken(
tools/clang/tools/extra/clang-tidy/modernize/UseNodiscardCheck.cpp
  120   SourceLocation Loc = MatchedDecl->getLocation();
  124   SourceLocation RetLoc = MatchedDecl->getInnerLocStart();
tools/clang/tools/extra/clang-tidy/modernize/UseNullptrCheck.cpp
   50 bool isReplaceableRange(SourceLocation StartLoc, SourceLocation EndLoc,
   50 bool isReplaceableRange(SourceLocation StartLoc, SourceLocation EndLoc,
   59                         SourceLocation StartLoc, SourceLocation EndLoc) {
   59                         SourceLocation StartLoc, SourceLocation EndLoc) {
   64   SourceLocation PreviousLocation = StartLoc.getLocWithOffset(-1);
   77 StringRef getOutermostMacroName(SourceLocation Loc, const SourceManager &SM,
   80   SourceLocation OutermostMacroLoc;
   95   MacroArgUsageVisitor(SourceLocation CastLoc, const SourceManager &SM)
  152   SourceLocation CastLoc;
  216     SourceLocation StartLoc = FirstSubExpr->getBeginLoc();
  217     SourceLocation EndLoc = FirstSubExpr->getEndLoc();
  225       SourceLocation FileLocStart = SM.getFileLoc(StartLoc),
  227       SourceLocation ImmediateMacroArgLoc, MacroLoc;
  269     SourceLocation CastLoc = CE->getBeginLoc();
  273     SourceLocation ArgLoc, MacroLoc;
  308   bool getMacroAndArgLocations(SourceLocation Loc, SourceLocation &ArgLoc,
  308   bool getMacroAndArgLocations(SourceLocation Loc, SourceLocation &ArgLoc,
  309                                SourceLocation &MacroLoc) {
  320       SourceLocation OldArgLoc = ArgLoc;
  361   bool expandsFrom(SourceLocation TestLoc, SourceLocation TestMacroLoc) {
  361   bool expandsFrom(SourceLocation TestLoc, SourceLocation TestMacroLoc) {
  366     SourceLocation Loc = TestLoc, MacroLoc;
  409                               SourceLocation MacroLoc,
  434       SourceLocation Loc;
tools/clang/tools/extra/clang-tidy/modernize/UseOverrideCheck.cpp
  143     SourceLocation InsertLoc;
  145     SourceLocation MethodLoc = Method->getLocation();
  158           SourceLocation Loc =
  215     SourceLocation OverrideLoc = Method->getAttr<OverrideAttr>()->getLocation();
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
  104 static SourceLocation expandIfMacroId(SourceLocation Loc,
  104 static SourceLocation expandIfMacroId(SourceLocation Loc,
  113 SourceLocation UseTrailingReturnTypeCheck::findTrailingReturnTypeSourceLocation(
  124   SourceLocation ClosingParen = FTL.getRParenLoc();
  128   SourceLocation Result =
  208   SourceLocation BeginF = expandIfMacroId(F.getBeginLoc(), SM);
  209   SourceLocation BeginNameF = expandIfMacroId(F.getLocation(), SM);
  427   SourceLocation InsertionLoc =
  457   SourceLocation ReturnTypeEnd =
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.h
   41   SourceLocation findTrailingReturnTypeSourceLocation(
tools/clang/tools/extra/clang-tidy/modernize/UseTransparentFunctorsCheck.cpp
  122   SourceLocation ReportLoc = FunctorLoc.getLocation();
tools/clang/tools/extra/clang-tidy/modernize/UseUncaughtExceptionsCheck.cpp
   51   SourceLocation BeginLoc;
   52   SourceLocation EndLoc;
tools/clang/tools/extra/clang-tidy/modernize/UseUsingCheck.cpp
   32 static bool CheckRemoval(SourceManager &SM, SourceLocation StartLoc,
   86   SourceLocation StartLoc = MatchedDecl->getBeginLoc();
tools/clang/tools/extra/clang-tidy/mpi/BufferDerefCheck.cpp
  123       const auto Loc = BufferExprs[i]->getSourceRange().getBegin();
tools/clang/tools/extra/clang-tidy/mpi/TypeMismatchCheck.cpp
  325       const auto Loc = BufferExprs[i]->getSourceRange().getBegin();
tools/clang/tools/extra/clang-tidy/objc/SuperSelfCheck.cpp
  100   SourceLocation ReceiverLoc = Message->getReceiverRange().getBegin();
  104   SourceLocation SelectorLoc = Message->getSelectorStartLoc();
tools/clang/tools/extra/clang-tidy/performance/NoexceptMoveConstructorCheck.cpp
   57       SourceLocation NoexceptLoc = Decl->getParamDecl(Decl->getNumParams() - 1)
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp
  200   auto EndLoc = Lexer::getLocForEndOfToken(CopyArgument.getLocation(), 0, SM,
tools/clang/tools/extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp
   21 tok::TokenKind getTokenKind(SourceLocation Loc, const SourceManager &SM,
   24   SourceLocation Beginning =
   36 SourceLocation forwardSkipWhitespaceAndComments(SourceLocation Loc,
   36 SourceLocation forwardSkipWhitespaceAndComments(SourceLocation Loc,
   53 SourceLocation findEndLocation(SourceLocation LastTokenLoc,
   53 SourceLocation findEndLocation(SourceLocation LastTokenLoc,
   56   SourceLocation Loc =
   95     SourceLocation TokEndLoc =
  146     SourceLocation StartLoc = findRParenLoc(S, SM, Context);
  151     SourceLocation StartLoc = findRParenLoc(S, SM, Context);
  171 SourceLocation
  179   SourceLocation CondEndLoc = S->getCond()->getEndLoc();
  187   SourceLocation PastCondEndLoc =
  191   SourceLocation RParenLoc =
  205     SourceLocation InitialLoc, SourceLocation EndLocHint) {
  205     SourceLocation InitialLoc, SourceLocation EndLocHint) {
  239   SourceLocation StartLoc =
  243   SourceLocation EndLoc;
  249     const auto FREnd = FileRange.getEnd().getLocWithOffset(-1);
tools/clang/tools/extra/clang-tidy/readability/BracesAroundStatementsCheck.h
   53                  const Stmt *S, SourceLocation StartLoc,
   54                  SourceLocation EndLocHint = SourceLocation());
   56   SourceLocation findRParenLoc(const IfOrWhileStmt *S, const SourceManager &SM,
tools/clang/tools/extra/clang-tidy/readability/ConstReturnTypeCheck.cpp
   37   SourceLocation NameBeginLoc = Def->getQualifier()
   64   llvm::SmallVector<clang::SourceLocation, 4> DeclLocs;
  121   for (auto Loc : CR.DeclLocs)
tools/clang/tools/extra/clang-tidy/readability/ConvertMemberFunctionsToStatic.cpp
  122   SourceLocation Start = Range.getBegin().getLocWithOffset(Offset);
tools/clang/tools/extra/clang-tidy/readability/ElseAfterReturnCheck.cpp
   44   SourceLocation ElseLoc = If->getElseLoc();
tools/clang/tools/extra/clang-tidy/readability/FunctionSizeCheck.cpp
  118     std::vector<SourceLocation> NestingThresholders;
  210   for (const auto &CSPos : FI.NestingThresholders) {
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp
   35         clang::SourceLocation::getFromRawEncoding(static_cast<unsigned>(-1)),
   41         clang::SourceLocation::getFromRawEncoding(static_cast<unsigned>(-2)),
  682   SourceLocation FixLocation = Range.getBegin();
  954             SourceRange(SourceLocation::getFromRawEncoding(Loc)),
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.h
   88   typedef std::pair<SourceLocation, std::string> NamingCheckId;
tools/clang/tools/extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp
   26   SourceLocation Loc = Node.getBeginLoc();
   33   SourceLocation Loc = Statement->getBeginLoc();
   99     SourceLocation ParentStartLoc = Parent->getBeginLoc();
  100     SourceLocation ParentEndLoc =
  146   SourceLocation EndLoc = Lexer::getLocForEndOfToken(
  190     SourceLocation EndLoc = Lexer::getLocForEndOfToken(
tools/clang/tools/extra/clang-tidy/readability/InconsistentDeclarationParameterNameCheck.cpp
   51   InconsistentDeclarationInfo(SourceLocation DeclarationLocation,
   56   SourceLocation DeclarationLocation;
  143   SourceLocation ParameterSourceLocation =
  147     SourceLocation OtherLocation = OtherDeclaration->getLocation();
  214     InconsistentDeclarationParameterNameCheck *Check, SourceLocation Location,
  326   SourceLocation StartLoc = OriginalDeclaration->getBeginLoc();
tools/clang/tools/extra/clang-tidy/readability/IsolateDeclarationCheck.cpp
   34 static SourceLocation findStartOfIndirection(SourceLocation Start,
   34 static SourceLocation findStartOfIndirection(SourceLocation Start,
  141   SourceLocation Start = findStartOfIndirection(
  178   SourceLocation DeclBegin = Start;
  187     SourceLocation DeclEnd =
tools/clang/tools/extra/clang-tidy/readability/MisleadingIndentationCheck.cpp
   25     SourceLocation PreviousElseLoc = PrecedingIf->getElseLoc();
   36   SourceLocation IfLoc = If->getIfLoc();
   37   SourceLocation ElseLoc = If->getElseLoc();
   81     SourceLocation InnerLoc = Inner->getBeginLoc();
   82     SourceLocation OuterLoc = CurrentStmt->getBeginLoc();
   93     SourceLocation NextLoc = NextStmt->getBeginLoc();
tools/clang/tools/extra/clang-tidy/readability/NamespaceCommentCheck.cpp
   44                                 SourceLocation Loc1, SourceLocation Loc2) {
   44                                 SourceLocation Loc1, SourceLocation Loc2) {
   83   SourceLocation AfterRBrace = ND->getRBraceLoc().getLocWithOffset(1);
   84   SourceLocation Loc = AfterRBrace;
   86   SourceLocation LBracketLocation = ND->getLocation();
   87   SourceLocation NestedNamespaceBegin = LBracketLocation;
   92   for (const auto &EndOfNameLocation : Ends) {
  186   SourceLocation DiagLoc =
tools/clang/tools/extra/clang-tidy/readability/NamespaceCommentCheck.h
   36   llvm::SmallVector<SourceLocation, 4> Ends;
tools/clang/tools/extra/clang-tidy/readability/RedundantControlFlowCheck.cpp
   27 bool isLocationInMacroExpansion(const SourceManager &SM, SourceLocation Loc) {
   80   SourceLocation Start;
tools/clang/tools/extra/clang-tidy/readability/RedundantDeclarationCheck.cpp
   74   SourceLocation EndLoc = Lexer::getLocForEndOfToken(
tools/clang/tools/extra/clang-tidy/readability/RedundantPreprocessorCheck.cpp
   19   SourceLocation Loc;
   35   void If(SourceLocation Loc, SourceRange ConditionRange,
   43   void Ifdef(SourceLocation Loc, const Token &MacroNameTok,
   51   void Ifndef(SourceLocation Loc, const Token &MacroNameTok,
   60   void Endif(SourceLocation Loc, SourceLocation IfLoc) override {
   60   void Endif(SourceLocation Loc, SourceLocation IfLoc) override {
   70   void CheckMacroRedundancy(SourceLocation Loc, StringRef MacroName,
tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp
  560     const ast_matchers::MatchFinder::MatchResult &Result, SourceLocation Loc,
  606   SourceLocation Start =
  663   SourceLocation Location =
tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.h
   78                  SourceLocation Loc, StringRef Description,
tools/clang/tools/extra/clang-tidy/readability/StaticAccessedThroughInstanceCheck.cpp
   74   SourceLocation MemberExprStartLoc = MemberExpression->getBeginLoc();
tools/clang/tools/extra/clang-tidy/readability/StaticDefinitionInAnonymousNamespaceCheck.cpp
   47   SourceLocation Loc = Def->getSourceRange().getBegin();
tools/clang/tools/extra/clang-tidy/readability/UniqueptrDeleteReleaseCheck.cpp
   53   SourceLocation AfterPtr = Lexer::getLocForEndOfToken(
tools/clang/tools/extra/clang-tidy/readability/UppercaseLiteralSuffixCheck.cpp
   65 llvm::Optional<SourceLocation> GetMacroAwareLocation(SourceLocation Loc,
   65 llvm::Optional<SourceLocation> GetMacroAwareLocation(SourceLocation Loc,
   71   SourceLocation SpellingLoc = SM.getSpellingLoc(Loc);
   79   llvm::Optional<SourceLocation> Begin =
   81   llvm::Optional<SourceLocation> End = GetMacroAwareLocation(Loc.getEnd(), SM);
tools/clang/tools/extra/clang-tidy/utils/ASTUtils.cpp
   72   SourceLocation MacroArgExpansionStartForRangeBegin;
   73   SourceLocation MacroArgExpansionStartForRangeEnd;
tools/clang/tools/extra/clang-tidy/utils/FixItHintUtils.cpp
   19   SourceLocation AmpLocation = Var.getLocation();
tools/clang/tools/extra/clang-tidy/utils/HeaderFileExtensionsUtils.cpp
   18     SourceLocation Loc, const SourceManager &SM,
   20   SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc);
   26     SourceLocation Loc, SourceManager &SM,
   34     SourceLocation Loc, SourceManager &SM,
   36   SourceLocation SpellingLoc = SM.getSpellingLoc(Loc);
tools/clang/tools/extra/clang-tidy/utils/HeaderFileExtensionsUtils.h
   25     SourceLocation Loc, const SourceManager &SM,
   30     SourceLocation Loc, SourceManager &SM,
   35     SourceLocation Loc, SourceManager &SM,
tools/clang/tools/extra/clang-tidy/utils/HeaderGuard.cpp
   33   void FileChanged(SourceLocation Loc, FileChangeReason Reason,
   47   void Ifndef(SourceLocation Loc, const Token &MacroNameTok,
   64   void Endif(SourceLocation Loc, SourceLocation IfLoc) override {
   64   void Endif(SourceLocation Loc, SourceLocation IfLoc) override {
   92       SourceLocation Ifndef =
   94       SourceLocation Define = MacroEntry.first.getLocation();
   95       SourceLocation EndIf =
  134   bool wouldFixEndifComment(StringRef FileName, SourceLocation EndIf,
  165   std::string checkHeaderGuardDefinition(SourceLocation Ifndef,
  166                                          SourceLocation Define,
  167                                          SourceLocation EndIf,
  194   void checkEndifComment(StringRef FileName, SourceLocation EndIf,
  219       SourceLocation StartLoc = SM.getLocForStartOfFile(FID);
  233         SourceLocation DefineLoc = MacroEntry.first.getLocation();
  260   std::map<const IdentifierInfo *, std::pair<SourceLocation, SourceLocation>>
  260   std::map<const IdentifierInfo *, std::pair<SourceLocation, SourceLocation>>
  262   std::map<SourceLocation, SourceLocation> EndIfs;
  262   std::map<SourceLocation, SourceLocation> EndIfs;
tools/clang/tools/extra/clang-tidy/utils/IncludeInserter.cpp
   22   void InclusionDirective(SourceLocation HashLocation,
   70                                  SourceLocation HashLocation,
   71                                  SourceLocation EndLocation) {
tools/clang/tools/extra/clang-tidy/utils/IncludeInserter.h
   72                   SourceLocation HashLocation, SourceLocation EndLocation);
   72                   SourceLocation HashLocation, SourceLocation EndLocation);
tools/clang/tools/extra/clang-tidy/utils/IncludeSorter.cpp
   93                                SourceLocation HashLocation,
   94                                SourceLocation EndLocation) {
tools/clang/tools/extra/clang-tidy/utils/IncludeSorter.h
   54                   SourceLocation HashLocation, SourceLocation EndLocation);
   54                   SourceLocation HashLocation, SourceLocation EndLocation);
tools/clang/tools/extra/clang-tidy/utils/LexerUtils.cpp
   16 Token getPreviousToken(SourceLocation Location, const SourceManager &SM,
   21   auto StartOfFile = SM.getLocForStartOfFile(SM.getFileID(Location));
   33 SourceLocation findPreviousTokenStart(SourceLocation Start,
   33 SourceLocation findPreviousTokenStart(SourceLocation Start,
   39   SourceLocation BeforeStart = Start.getLocWithOffset(-1);
   46 SourceLocation findPreviousTokenKind(SourceLocation Start,
   46 SourceLocation findPreviousTokenKind(SourceLocation Start,
   51     SourceLocation L = findPreviousTokenStart(Start, SM, LangOpts);
   66 SourceLocation findNextTerminator(SourceLocation Start, const SourceManager &SM,
   66 SourceLocation findNextTerminator(SourceLocation Start, const SourceManager &SM,
   75   SourceLocation Loc = Range.getBegin();
tools/clang/tools/extra/clang-tidy/utils/LexerUtils.h
   22 Token getPreviousToken(SourceLocation Location, const SourceManager &SM,
   25 SourceLocation findPreviousTokenStart(SourceLocation Start,
   25 SourceLocation findPreviousTokenStart(SourceLocation Start,
   29 SourceLocation findPreviousTokenKind(SourceLocation Start,
   29 SourceLocation findPreviousTokenKind(SourceLocation Start,
   34 SourceLocation findNextTerminator(SourceLocation Start, const SourceManager &SM,
   34 SourceLocation findNextTerminator(SourceLocation Start, const SourceManager &SM,
   38 SourceLocation findPreviousAnyTokenKind(SourceLocation Start,
   38 SourceLocation findPreviousAnyTokenKind(SourceLocation Start,
   43     SourceLocation L = findPreviousTokenStart(Start, SM, LangOpts);
   60 SourceLocation findNextAnyTokenKind(SourceLocation Start,
   60 SourceLocation findNextAnyTokenKind(SourceLocation Start,
tools/clang/tools/extra/clang-tidy/utils/NamespaceAliaser.cpp
   71     SourceLocation Loc =
tools/clang/tools/extra/clang-tidy/utils/UsingInserter.cpp
   42   SourceLocation InsertLoc = Lexer::getLocForEndOfToken(
tools/clang/tools/extra/clangd/AST.cpp
   83 SourceLocation findName(const clang::Decl *D) {
tools/clang/tools/extra/clangd/AST.h
   36 SourceLocation findName(const clang::Decl *D);
tools/clang/tools/extra/clangd/ClangdServer.cpp
  321     SourceLocation Loc = getBeginningOfIdentifier(
tools/clang/tools/extra/clangd/CodeComplete.cpp
  810                                  SourceLocation OpenParLoc) override {
tools/clang/tools/extra/clangd/CollectMacros.h
   39   void FileChanged(SourceLocation Loc, FileChangeReason,
   59   void Ifdef(SourceLocation Loc, const Token &MacroName,
   64   void Ifndef(SourceLocation Loc, const Token &MacroName,
   78     auto Loc = MacroNameTok.getLocation();
tools/clang/tools/extra/clangd/Compiler.cpp
   29     auto Loc = SourceMgr.getFileLoc(Info.getLocation());
tools/clang/tools/extra/clangd/Diagnostics.cpp
   78 bool locationInRange(SourceLocation L, CharSourceRange R,
   91   auto Loc = M.getFileLoc(D.getLocation());
  120   const SourceLocation &DiagLoc = Info.getLocation();
  122   SourceLocation IncludeInMainFile;
  126   for (auto IncludeLocation = GetIncludeLoc(DiagLoc); IncludeLocation.isValid();
tools/clang/tools/extra/clangd/FindSymbols.cpp
  134   SourceLocation NameLoc = spellingLocIfSpelled(findName(&ND), SM);
  139   SourceLocation BeginLoc = SM.getSpellingLoc(SM.getFileLoc(ND.getBeginLoc()));
  140   SourceLocation EndLoc = SM.getSpellingLoc(SM.getFileLoc(ND.getEndLoc()));
tools/clang/tools/extra/clangd/FindTarget.h
   88   SourceLocation NameLoc;
tools/clang/tools/extra/clangd/Headers.cpp
   31   void InclusionDirective(SourceLocation HashLoc, const Token & /*IncludeTok*/,
tools/clang/tools/extra/clangd/IncludeFixer.cpp
  196                                                   SourceLocation Loc,
  200   SourceLocation NextLoc = Loc;
tools/clang/tools/extra/clangd/IncludeFixer.h
   60     SourceLocation Loc; // Start location of the unresolved name.
tools/clang/tools/extra/clangd/ParsedAST.cpp
  155   void FileChanged(SourceLocation Loc, FileChangeReason Reason,
tools/clang/tools/extra/clangd/SemanticHighlighting.cpp
  271   void addToken(SourceLocation Loc, HighlightingKind Kind) {
  300   void addToken(SourceLocation Loc, const NamedDecl *D) {
tools/clang/tools/extra/clangd/SourceCode.cpp
  199 Position sourceLocToPosition(const SourceManager &SM, SourceLocation Loc) {
  216 bool isSpelledInSource(SourceLocation Loc, const SourceManager &SM) {
  226 SourceLocation spellingLocIfSpelled(SourceLocation Loc,
  226 SourceLocation spellingLocIfSpelled(SourceLocation Loc,
  236                                     SourceLocation TokLoc) {
  239   SourceLocation End = Lexer::getLocForEndOfToken(TokLoc, 0, SM, LangOpts);
  263 TokenFlavor getTokenFlavor(SourceLocation Loc, const SourceManager &SM,
  284 SourceLocation getBeginningOfIdentifier(const Position &Pos,
  304   SourceLocation InputLoc = SM.getComposedLoc(FID, *Offset);
  307   SourceLocation Before = SM.getComposedLoc(FID, *Offset - 1);
  308   SourceLocation BeforeTokBeginning =
  312   SourceLocation CurrentTokBeginning =
  363                            SourceLocation L) {
  378                           SourceLocation L) {
  382 SourceLocation includeHashLoc(FileID IncludedFile, const SourceManager &SM) {
  404 static unsigned getTokenLengthAtLoc(SourceLocation Loc, const SourceManager &SM,
  420 static SourceLocation getLocForTokenEnd(SourceLocation BeginLoc,
  420 static SourceLocation getLocForTokenEnd(SourceLocation BeginLoc,
  428 static SourceLocation getLocForTokenBegin(SourceLocation EndLoc,
  428 static SourceLocation getLocForTokenBegin(SourceLocation EndLoc,
  448   SourceLocation Begin =
  452   SourceLocation End =
  469   llvm::DenseMap<FileID, SourceLocation> BeginExpansions;
  470   for (SourceLocation Begin = R.getBegin(); Begin.isValid();
  478   for (SourceLocation End = R.getEnd(); End.isValid();
  496 getExpansionTokenRangeInSameFile(SourceLocation Loc, const SourceManager &SM,
  513 static SourceRange getTokenFileRange(SourceLocation Loc,
  541 bool isInsideMainFile(SourceLocation Loc, const SourceManager &SM) {
  578 llvm::Expected<SourceLocation> sourceLocationInMainFile(const SourceManager &SM,
  980 llvm::Optional<DefinedMacro> locateMacroAt(SourceLocation Loc,
  996   SourceLocation BeforeSearchedLocation =
tools/clang/tools/extra/clangd/SourceCode.h
   69 Position sourceLocToPosition(const SourceManager &SM, SourceLocation Loc);
   74                                     SourceLocation TokLoc);
   78 llvm::Expected<SourceLocation> sourceLocationInMainFile(const SourceManager &SM,
   85 SourceLocation getBeginningOfIdentifier(const Position &Pos,
   95 bool isInsideMainFile(SourceLocation Loc, const SourceManager &SM);
  100 SourceLocation includeHashLoc(FileID IncludedFile, const SourceManager &SM);
  108 bool isSpelledInSource(SourceLocation Loc, const SourceManager &SM);
  113 SourceLocation spellingLocIfSpelled(SourceLocation Loc,
  113 SourceLocation spellingLocIfSpelled(SourceLocation Loc,
  144                            SourceLocation L);
  150                           SourceLocation L);
  291 llvm::Optional<DefinedMacro> locateMacroAt(SourceLocation Loc,
tools/clang/tools/extra/clangd/XRefs.cpp
  139   const SourceLocation &SearchedLocation;
  142   DeclarationFinder(const SourceLocation &SearchedLocation)
  160                       SourceLocation Loc,
  201                                             SourceLocation Pos) {
  215 llvm::Optional<Location> makeLocation(ASTContext &AST, SourceLocation TokLoc,
  261   SourceLocation SourceLocationBeg =
  352     SourceLocation Loc;
  380                       SourceLocation Loc,
  738   SourceLocation StartLoc = Macro.Info->getDefinitionLoc();
  739   SourceLocation EndLoc = Macro.Info->getDefinitionEndLoc();
  767   SourceLocation SearchedLocation;
  770   DeducedTypeVisitor(SourceLocation SearchedLocation)
  802     auto CurLoc = D->getReturnTypeSourceRange().getBegin();
  858                                         SourceLocation SourceLocationBeg) {
  878 bool hasDeducedType(ParsedAST &AST, SourceLocation SourceLocationBeg) {
  887   SourceLocation SourceLocationBeg = SM.getMacroArgExpandedLocation(
  930   auto Loc = SM.getMacroArgExpandedLocation(
  987   auto Loc = SM.getMacroArgExpandedLocation(
 1040   SourceLocation NameLoc =
 1046   SourceLocation BeginLoc = SM.getSpellingLoc(SM.getFileLoc(ND.getBeginLoc()));
 1047   SourceLocation EndLoc = SM.getSpellingLoc(SM.getFileLoc(ND.getEndLoc()));
 1159   SourceLocation SourceLocationBeg = SM.getMacroArgExpandedLocation(
tools/clang/tools/extra/clangd/XRefs.h
  155                                         SourceLocation SourceLocationBeg);
  159 bool hasDeducedType(ParsedAST &AST, SourceLocation SourceLocationBeg);
tools/clang/tools/extra/clangd/index/IndexAction.cpp
   53   void FileChanged(SourceLocation Loc, FileChangeReason Reason,
   86   void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
tools/clang/tools/extra/clangd/index/SymbolCollector.cpp
   84   auto Loc = spellingLocIfSpelled(findName(&ND), SM);
  135 getTokenRange(SourceLocation TokLoc, const SourceManager &SM,
  152 getTokenLocation(SourceLocation TokLoc, const SourceManager &SM,
  249     llvm::ArrayRef<index::SymbolRelation> Relations, SourceLocation Loc,
  278   auto SpellingLoc = SM.getSpellingLoc(Loc);
  346                                            SourceLocation Loc) {
  352   auto DefLoc = MI->getDefinitionLoc();
  448 void SymbolCollector::setIncludeLocation(const Symbol &S, SourceLocation Loc) {
  574   auto Loc = spellingLocIfSpelled(findName(&ND), SM);
  635   auto Loc = spellingLocIfSpelled(findName(&ND), SM);
tools/clang/tools/extra/clangd/index/SymbolCollector.h
  104                       SourceLocation Loc,
  109                             SourceLocation Loc) override;
  139   void setIncludeLocation(const Symbol &S, SourceLocation);
  154   using DeclRef = std::pair<SourceLocation, index::SymbolRoleSet>;
tools/clang/tools/extra/clangd/refactor/Rename.cpp
  165   SourceLocation SourceLocationBeg = SM.getMacroArgExpandedLocation(
tools/clang/tools/extra/clangd/refactor/Tweak.h
   60     SourceLocation Cursor;
tools/clang/tools/extra/clangd/refactor/tweaks/DefineInline.cpp
   71 llvm::Optional<SourceLocation> getSemicolonForDecl(const FunctionDecl *FD) {
   75   SourceLocation CurLoc = FD->getEndLoc();
  102   SourceLocation TargetLoc = Target->getLocation();
  114     SourceLocation DeclLoc = D->getLocation();
  252 const SourceLocation getBeginLoc(const FunctionDecl *FD) {
tools/clang/tools/extra/clangd/refactor/tweaks/ExpandMacro.cpp
   66                           SourceLocation Cursor) {
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractFunction.cpp
  155   SourceLocation getInsertionPoint() const {
  289   SourceLocation InsertionPoint;
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractVariable.cpp
  100   SourceLocation ScopeBegin = Scope->getBeginLoc();
  101   SourceLocation ScopeEnd = Scope->getEndLoc();
  174   const SourceLocation InsertionLoc =
  204   SourceLocation ExprLoc;
tools/clang/tools/extra/clangd/refactor/tweaks/RawStringLiteral.cpp
   52 static bool isNormalString(const StringLiteral &Str, SourceLocation Cursor,
   57   SourceLocation LastTokenBeforeCursor;
tools/clang/tools/extra/clangd/refactor/tweaks/RemoveUsingNamespace.cpp
  136   SourceLocation FirstUsingDirectiveLoc;
  145   std::vector<SourceLocation> IdentsToQualify;
  156       SourceLocation Loc = Ref.NameLoc;
  193   for (auto Loc : IdentsToQualify) {
tools/clang/tools/extra/clangd/unittests/FindTargetTests.cpp
  550       SourceLocation Pos = R.NameLoc;
tools/clang/tools/extra/clangd/unittests/SourceCodeTests.cpp
  294   SourceLocation StartOfFile = SM.getLocForStartOfFile(SM.getMainFileID());
  361     SourceLocation Actual = getBeginningOfIdentifier(
  485   auto Loc = getBeginningOfIdentifier(Code.point(), AST.getSourceManager(),
tools/clang/tools/extra/clangd/unittests/XRefsTests.cpp
 2272     SourceLocation SL = llvm::cantFail(
tools/clang/tools/extra/modularize/CoverageChecker.cpp
   89   void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
tools/clang/tools/extra/modularize/Modularize.cpp
  389   Location(SourceManager &SM, SourceLocation Loc) : File(), Line(), Column() {
tools/clang/tools/extra/modularize/ModularizeUtilities.cpp
  389     SourceLocation Loc = Mod.MissingHeaders[Index].FileNameLoc;
tools/clang/tools/extra/modularize/PreprocessorTracker.cpp
  270                                            clang::SourceLocation Loc) {
  279                                          clang::SourceLocation Loc) {
  289                                            clang::SourceLocation Loc, int &Line,
  304   clang::SourceLocation BeginLoc = Range.getBegin();
  305   clang::SourceLocation EndLoc = Range.getEnd();
  314                                  clang::SourceLocation Loc) {
  380   clang::SourceLocation BeginLoc(Range.getBegin());
  385     clang::SourceLocation EndLoc(Range.getEnd());
  490             clang::SourceLocation Loc)
  745   void InclusionDirective(clang::SourceLocation HashLoc,
  754   void FileChanged(clang::SourceLocation Loc,
  764   void If(clang::SourceLocation Loc, clang::SourceRange ConditionRange,
  766   void Elif(clang::SourceLocation Loc, clang::SourceRange ConditionRange,
  768             clang::SourceLocation IfLoc) override;
  769   void Ifdef(clang::SourceLocation Loc, const clang::Token &MacroNameTok,
  771   void Ifndef(clang::SourceLocation Loc, const clang::Token &MacroNameTok,
  855     clang::SourceLocation BlockStartLoc = BlockSourceRange.getBegin();
  856     clang::SourceLocation BlockEndLoc = BlockSourceRange.getEnd();
 1046                                  clang::SourceLocation InstanceLoc,
 1047                                  clang::SourceLocation DefinitionLoc,
 1095                                   clang::SourceLocation InstanceLoc,
 1288     clang::SourceLocation HashLoc, const clang::Token &IncludeTok,
 1302     clang::SourceLocation Loc, clang::PPCallbacks::FileChangeReason Reason,
 1325   clang::SourceLocation Loc = Range.getBegin();
 1342   clang::SourceLocation Loc(Range.getBegin());
 1353 void PreprocessorCallbacks::If(clang::SourceLocation Loc,
 1362 void PreprocessorCallbacks::Elif(clang::SourceLocation Loc,
 1365                                  clang::SourceLocation IfLoc) {
 1372 void PreprocessorCallbacks::Ifdef(clang::SourceLocation Loc,
 1383 void PreprocessorCallbacks::Ifndef(clang::SourceLocation Loc,
tools/clang/tools/extra/pp-trace/PPCallbacksTracker.cpp
   25                                            SourceLocation Loc) {
  102 void PPCallbacksTracker::FileChanged(SourceLocation Loc,
  138     SourceLocation HashLoc, const Token &IncludeTok, llvm::StringRef FileName,
  155 void PPCallbacksTracker::moduleImport(SourceLocation ImportLoc,
  169 void PPCallbacksTracker::Ident(SourceLocation Loc, llvm::StringRef Str) {
  176 void PPCallbacksTracker::PragmaDirective(SourceLocation Loc,
  184 void PPCallbacksTracker::PragmaComment(SourceLocation Loc,
  195 void PPCallbacksTracker::PragmaDetectMismatch(SourceLocation Loc,
  205 void PPCallbacksTracker::PragmaDebug(SourceLocation Loc,
  213 void PPCallbacksTracker::PragmaMessage(SourceLocation Loc,
  226 void PPCallbacksTracker::PragmaDiagnosticPush(SourceLocation Loc,
  235 void PPCallbacksTracker::PragmaDiagnosticPop(SourceLocation Loc,
  243 void PPCallbacksTracker::PragmaDiagnostic(SourceLocation Loc,
  256 void PPCallbacksTracker::PragmaOpenCLExtension(SourceLocation NameLoc,
  258                                                SourceLocation StateLoc,
  268 void PPCallbacksTracker::PragmaWarning(SourceLocation Loc,
  288 void PPCallbacksTracker::PragmaWarningPush(SourceLocation Loc, int Level) {
  295 void PPCallbacksTracker::PragmaWarningPop(SourceLocation Loc) {
  302 void PPCallbacksTracker::PragmaExecCharsetPush(SourceLocation Loc,
  311 void PPCallbacksTracker::PragmaExecCharsetPop(SourceLocation Loc) {
  358                                             SourceLocation EndifLoc) {
  364 void PPCallbacksTracker::If(SourceLocation Loc, SourceRange ConditionRange,
  373 void PPCallbacksTracker::Elif(SourceLocation Loc, SourceRange ConditionRange,
  375                               SourceLocation IfLoc) {
  384 void PPCallbacksTracker::Ifdef(SourceLocation Loc, const Token &MacroNameTok,
  393 void PPCallbacksTracker::Ifndef(SourceLocation Loc, const Token &MacroNameTok,
  402 void PPCallbacksTracker::Else(SourceLocation Loc, SourceLocation IfLoc) {
  402 void PPCallbacksTracker::Else(SourceLocation Loc, SourceLocation IfLoc) {
  409 void PPCallbacksTracker::Endif(SourceLocation Loc, SourceLocation IfLoc) {
  409 void PPCallbacksTracker::Endif(SourceLocation Loc, SourceLocation IfLoc) {
  501                                         SourceLocation Value) {
tools/clang/tools/extra/pp-trace/PPCallbacksTracker.h
   89   void FileChanged(SourceLocation Loc, PPCallbacks::FileChangeReason Reason,
   96   void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
  102   void moduleImport(SourceLocation ImportLoc, ModuleIdPath Path,
  105   void Ident(SourceLocation Loc, llvm::StringRef str) override;
  106   void PragmaDirective(SourceLocation Loc,
  108   void PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind,
  110   void PragmaDetectMismatch(SourceLocation Loc, llvm::StringRef Name,
  112   void PragmaDebug(SourceLocation Loc, llvm::StringRef DebugType) override;
  113   void PragmaMessage(SourceLocation Loc, llvm::StringRef Namespace,
  116   void PragmaDiagnosticPush(SourceLocation Loc,
  118   void PragmaDiagnosticPop(SourceLocation Loc,
  120   void PragmaDiagnostic(SourceLocation Loc, llvm::StringRef Namespace,
  122   void PragmaOpenCLExtension(SourceLocation NameLoc, const IdentifierInfo *Name,
  123                              SourceLocation StateLoc, unsigned State) override;
  124   void PragmaWarning(SourceLocation Loc, llvm::StringRef WarningSpec,
  126   void PragmaWarningPush(SourceLocation Loc, int Level) override;
  127   void PragmaWarningPop(SourceLocation Loc) override;
  128   void PragmaExecCharsetPush(SourceLocation Loc, StringRef Str) override;
  129   void PragmaExecCharsetPop(SourceLocation Loc) override;
  138   void SourceRangeSkipped(SourceRange Range, SourceLocation EndifLoc) override;
  139   void If(SourceLocation Loc, SourceRange ConditionRange,
  141   void Elif(SourceLocation Loc, SourceRange ConditionRange,
  142             ConditionValueKind ConditionValue, SourceLocation IfLoc) override;
  143   void Ifdef(SourceLocation Loc, const Token &MacroNameTok,
  145   void Ifndef(SourceLocation Loc, const Token &MacroNameTok,
  147   void Else(SourceLocation Loc, SourceLocation IfLoc) override;
  147   void Else(SourceLocation Loc, SourceLocation IfLoc) override;
  148   void Endif(SourceLocation Loc, SourceLocation IfLoc) override;
  148   void Endif(SourceLocation Loc, SourceLocation IfLoc) override;
  186   void appendArgument(const char *Name, SourceLocation Value);
tools/clang/tools/libclang/CIndex.cpp
  124                                              SourceLocation L, SourceRange R) {
  147   SourceLocation EndLoc = R.getEnd();
  320     SourceLocation Outer;
  408     SourceLocation B = MappedRange.getBegin();
  409     SourceLocation E = MappedRange.getEnd();
  571   SourceLocation BeginLoc = RegionOfInterest.getBegin();
  574     SourceLocation Loc = AU->mapLocationToPreamble(BeginLoc);
  986                                       SourceManager &SM, SourceLocation EndLoc,
  993     SourceLocation L = D_next->getBeginLoc();
 1018   SourceLocation EndLoc = D->getSourceRange().getEnd();
 1046                SourceLocation L_A = A->getBeginLoc();
 1047                SourceLocation L_B = B->getBeginLoc();
 1422 bool CursorVisitor::VisitTemplateName(TemplateName Name, SourceLocation Loc) {
 1892   LabelRefVisit(LabelDecl *LD, SourceLocation labelLoc, CXCursor parent)
 1902   SourceLocation getLoc() const { 
 1903     return SourceLocation::getFromPtrEncoding(data[1]); }
 1950   MemberRefVisit(const FieldDecl *D, SourceLocation L, CXCursor parent)
 1959   SourceLocation getLoc() const {
 1960     return SourceLocation::getFromRawEncoding((unsigned)(uintptr_t) data[1]);
 2086   void AddMemberRef(const FieldDecl *D, SourceLocation L);
 2119 void EnqueueVisitor::AddMemberRef(const FieldDecl *D, SourceLocation L) {
 3247     Pieces.push_back(SourceLocation::getFromRawEncoding(
 3249     Pieces.push_back(SourceLocation::getFromRawEncoding(
 4383 static SourceLocation getLocationFromExpr(const Expr *E) {
 4703       ArrayRef<SourceLocation> Locs = ImportD->getIdentifierLocs();
 4739   SourceLocation Loc = cxloc::translateSourceLocation(CXLoc);
 5545   SourceLocation TokenBeginLoc;
 5548   SourceLocation VisitedDeclaratorDeclStartLoc;
 5552                 SourceLocation tokenBegin, CXCursor &outputCursor)
 5598       SourceLocation StartLoc = DD->getSourceRange().getBegin();
 5668   SourceLocation SLoc = cxloc::translateSourceLocation(Loc);
 5812       std::pair<const ObjCInterfaceDecl *, SourceLocation> P
 5818       std::pair<const ObjCProtocolDecl *, SourceLocation> P
 5824       std::pair<const ObjCInterfaceDecl *, SourceLocation> P
 5830       std::pair<const TypeDecl *, SourceLocation> P = getCursorTypeRef(C);
 5835       std::pair<const TemplateDecl *, SourceLocation> P =
 5841       std::pair<const NamedDecl *, SourceLocation> P = getCursorNamespaceRef(C);
 5846       std::pair<const FieldDecl *, SourceLocation> P = getCursorMemberRef(C);
 5851       std::pair<const VarDecl *, SourceLocation> P = getCursorVariableRef(C);
 5869       std::pair<const LabelStmt *, SourceLocation> P = getCursorLabelRef(C);
 5892     SourceLocation L = cxcursor::getCursorPreprocessingDirective(C).getBegin();
 5897     SourceLocation L
 5903     SourceLocation L = cxcursor::getCursorMacroDefinition(C)->getLocation();
 5908     SourceLocation L
 5914     SourceLocation L
 5926   SourceLocation Loc = D->getLocation();
 5946 CXCursor cxcursor::getCursor(CXTranslationUnit TU, SourceLocation SLoc) {
 6049     SourceLocation Start = TU->getSourceManager().getLocForStartOfFile(MainID);
 6050     SourceLocation End = TU->getSourceManager().getLocForEndOfFile(MainID);
 6086     SourceLocation StartLoc;
 6661   SourceLocation Loc = SourceLocation::getFromRawEncoding(CXTok.int_data[1]);
 6661   SourceLocation Loc = SourceLocation::getFromRawEncoding(CXTok.int_data[1]);
 6684                         SourceLocation::getFromRawEncoding(CXTok.int_data[1]));
 6698                         SourceLocation::getFromRawEncoding(CXTok.int_data[1]));
 6787   SourceLocation Begin = cxloc::translateSourceLocation(Location);
 6794   SourceLocation End = SM.getComposedLoc(DecomposedEnd.first, DecomposedEnd.second);
 6899   SourceLocation GetTokenLoc(unsigned tokI) {
 6900     return SourceLocation::getFromRawEncoding(getTok(tokI).int_data[1]);
 6905   SourceLocation getFunctionMacroTokenLoc(unsigned tokI) const {
 6906     return SourceLocation::getFromRawEncoding(getTok(tokI).int_data[3]);
 7040     SourceLocation TokLoc = GetTokenLoc(I);
 7072     SourceLocation TokLoc = getFunctionMacroTokenLoc(I);
 7156       SourceLocation TokLoc = GetTokenLoc(I);
 7171       SourceLocation TokLoc = GetTokenLoc(I);
 7311       const SourceLocation TokenLocation = GetTokenLoc(I);
 7317       const SourceLocation fixedEnd =
 7381       SourceLocation tokLoc = getTokenLoc(CurIdx);
 7404   SourceLocation getTokenLoc(unsigned tokI) {
 7405     return SourceLocation::getFromRawEncoding(getTok(tokI).int_data[1]);
 7408   void setFunctionMacroTokenLoc(unsigned tokI, SourceLocation loc) {
 7484       SourceLocation BeginLoc = Tok.getLocation();
 7496           SourceLocation MappedTokLoc =
 7511           SourceLocation SaveLoc = Tok.getLocation();
 7524       SourceLocation EndLoc =
 7525           SourceLocation::getFromRawEncoding(Tokens[LastIdx].int_data[1]);
 7563     SourceLocation Loc =
 8801                                  SourceLocation MacroDefLoc,
 8875 cxindex::checkForMacroInMacroDefinition(const MacroInfo *MI, SourceLocation Loc,
tools/clang/tools/libclang/CIndexCodeCompletion.cpp
  659                                    SourceLocation OpenParLoc) override {
tools/clang/tools/libclang/CIndexHigh.cpp
  132 static SourceLocation getFileSpellingLoc(SourceManager &SM,
  133                                          SourceLocation Loc,
  136   SourceLocation SpellLoc = SM.getImmediateSpellingLoc(Loc);
  179     SourceLocation
  181     SourceLocation SelIdLoc = cxcursor::getSelectorIdentifierLoc(cursor);
  277   SourceLocation
  355     SourceLocation
tools/clang/tools/libclang/CIndexInclusionStack.cpp
   44     SourceLocation L = FI.getIncludeLoc();
tools/clang/tools/libclang/CIndexer.h
  131                             SourceLocation MacroDefLoc, CXTranslationUnit TU);
  141                                                           SourceLocation Loc,
tools/clang/tools/libclang/CXCursor.cpp
  110       SmallVector<SourceLocation, 16> SelLocs;
  112       SmallVectorImpl<SourceLocation>::iterator I =
  566       SmallVector<SourceLocation, 16> SelLocs;
  568       SmallVectorImpl<SourceLocation>::iterator I =
  739                                                SourceLocation Loc, 
  747 std::pair<const ObjCInterfaceDecl *, SourceLocation>
  751                         SourceLocation::getFromPtrEncoding(C.data[1]));
  755                                              SourceLocation Loc, 
  763 std::pair<const ObjCProtocolDecl *, SourceLocation>
  767                         SourceLocation::getFromPtrEncoding(C.data[1]));
  771                                           SourceLocation Loc, 
  782 std::pair<const ObjCInterfaceDecl *, SourceLocation>
  786                         SourceLocation::getFromPtrEncoding(C.data[1]));
  789 CXCursor cxcursor::MakeCursorTypeRef(const TypeDecl *Type, SourceLocation Loc, 
  797 std::pair<const TypeDecl *, SourceLocation>
  801                         SourceLocation::getFromPtrEncoding(C.data[1]));
  805                                          SourceLocation Loc,
  813 std::pair<const TemplateDecl *, SourceLocation>
  817                         SourceLocation::getFromPtrEncoding(C.data[1]));
  821                                           SourceLocation Loc, 
  831 std::pair<const NamedDecl *, SourceLocation>
  835                         SourceLocation::getFromPtrEncoding(C.data[1]));
  838 CXCursor cxcursor::MakeCursorVariableRef(const VarDecl *Var, SourceLocation Loc, 
  847 std::pair<const VarDecl *, SourceLocation>
  851                         SourceLocation::getFromPtrEncoding(C.data[1]));
  854 CXCursor cxcursor::MakeCursorMemberRef(const FieldDecl *Field, SourceLocation Loc, 
  863 std::pair<const FieldDecl *, SourceLocation>
  867                         SourceLocation::getFromPtrEncoding(C.data[1]));
  893   SourceRange Range(SourceLocation::getFromPtrEncoding(C.data[0]),
  894                     SourceLocation::getFromPtrEncoding(C.data[1]));
  917                                             SourceLocation Loc,
  952 CXCursor cxcursor::MakeCursorLabelRef(LabelStmt *Label, SourceLocation Loc, 
  961 std::pair<const LabelStmt *, SourceLocation>
  965                         SourceLocation::getFromPtrEncoding(C.data[1]));
  981                                                SourceLocation Loc,
  994                                                SourceLocation Loc,
 1006 std::pair<cxcursor::OverloadedDeclRefStorage, SourceLocation>
 1011                         SourceLocation::getFromPtrEncoding(C.data[1]));
 1067 std::pair<int, SourceLocation>
 1131   SourceLocation Loc = TL.getBeginLoc();
tools/clang/tools/libclang/CXCursor.h
   48 CXCursor getCursor(CXTranslationUnit, SourceLocation);
   62                                      SourceLocation Loc, 
   67 std::pair<const ObjCInterfaceDecl *, SourceLocation>
   72                                    SourceLocation Loc, 
   77 std::pair<const ObjCProtocolDecl *, SourceLocation>
   82                                 SourceLocation Loc, 
   87 std::pair<const ObjCInterfaceDecl *, SourceLocation>
   91 CXCursor MakeCursorTypeRef(const TypeDecl *Type, SourceLocation Loc,
   96 std::pair<const TypeDecl *, SourceLocation> getCursorTypeRef(CXCursor C);
   99 CXCursor MakeCursorTemplateRef(const TemplateDecl *Template, SourceLocation Loc,
  104 std::pair<const TemplateDecl *, SourceLocation>
  109 CXCursor MakeCursorNamespaceRef(const NamedDecl *NS, SourceLocation Loc,
  114 std::pair<const NamedDecl *, SourceLocation> getCursorNamespaceRef(CXCursor C);
  117 CXCursor MakeCursorVariableRef(const VarDecl *Var, SourceLocation Loc, 
  122 std::pair<const VarDecl *, SourceLocation> getCursorVariableRef(CXCursor C);
  125 CXCursor MakeCursorMemberRef(const FieldDecl *Field, SourceLocation Loc, 
  130 std::pair<const FieldDecl *, SourceLocation> getCursorMemberRef(CXCursor C);
  159 CXCursor MakeMacroExpansionCursor(MacroDefinitionRecord *, SourceLocation Loc,
  181   SourceLocation getPseudoLoc() const {
  183     return SourceLocation::getFromPtrEncoding(C.data[1]);
  210 CXCursor MakeCursorLabelRef(LabelStmt *Label, SourceLocation Loc,
  215 std::pair<const LabelStmt *, SourceLocation> getCursorLabelRef(CXCursor C);
  222 CXCursor MakeCursorOverloadedDeclRef(const Decl *D, SourceLocation Location,
  227                                      SourceLocation Location,
  237 std::pair<OverloadedDeclRefStorage, SourceLocation>
  261 std::pair<int, SourceLocation> getSelectorIdentifierIndexAndLoc(CXCursor);
  265 static inline SourceLocation getSelectorIdentifierLoc(CXCursor cursor) {
tools/clang/tools/libclang/CXIndexDataConsumer.cpp
   26   SourceLocation DeclLoc;
   30   IndexingDeclVisitor(CXIndexDataConsumer &dataConsumer, SourceLocation Loc,
  159     SourceLocation Loc, ASTNodeInfo ASTNode) {
  226                                                 SourceLocation Loc) {
  244     SourceLocation Loc = *LI;
  310     SourceLocation InterfaceLocStart =
  345     SourceLocation Loc = getBaseLoc(Base);
  373 SourceLocation CXIndexDataConsumer::CXXBasesListInfo::getBaseLoc(
  375   SourceLocation Loc = Base.getSourceRange().getBegin();
  460 void CXIndexDataConsumer::ppIncludedFile(SourceLocation hashLoc,
  543                                  SourceLocation Loc, CXCursor Cursor,
  602                                           SourceLocation Loc, CXCursor Cursor,
  680     SourceLocation SuperLoc = D->getSuperClassLoc();
  748   SourceLocation ClassLoc = D->getLocation();
  749   SourceLocation CategoryLoc = D->IsClassExtension() ? ClassLoc
  781   SourceLocation ClassLoc = D->getLocation();
  782   SourceLocation CategoryLoc = D->getCategoryNameLoc();
  804                                            SourceLocation Loc) {
  829                                                   SourceLocation Loc,
  885 bool CXIndexDataConsumer::handleReference(const NamedDecl *D, SourceLocation Loc,
  933 bool CXIndexDataConsumer::isNotFromSourceFile(SourceLocation Loc) const {
  937   SourceLocation FileLoc = SM.getFileLoc(Loc);
  993           SourceLocation
  994             Loc = SourceLocation::getFromRawEncoding(baseInfo->loc.int_data);
 1010                                                  SourceLocation Loc) {
 1092 CXIdxLoc CXIndexDataConsumer::getIndexLoc(SourceLocation Loc) const {
 1102 void CXIndexDataConsumer::translateLoc(SourceLocation Loc,
 1195 CXCursor CXIndexDataConsumer::getRefCursor(const NamedDecl *D, SourceLocation Loc) {
tools/clang/tools/libclang/CXIndexDataConsumer.h
  328     SourceLocation getBaseLoc(const CXXBaseSpecifier &Base) const;
  366   void ppIncludedFile(SourceLocation hashLoc,
  399   bool handleObjCMethod(const ObjCMethodDecl *D, SourceLocation Loc);
  402   bool handleSynthesizedObjCMethod(const ObjCMethodDecl *D, SourceLocation Loc,
  413   bool handleReference(const NamedDecl *D, SourceLocation Loc, CXCursor Cursor,
  420   bool isNotFromSourceFile(SourceLocation Loc) const;
  422   void translateLoc(SourceLocation Loc, CXIdxClientFile *indexFile, CXFile *file,
  436                            SourceLocation Loc, ASTNodeInfo ASTNode) override;
  440                              SourceLocation Loc) override;
  445                   SourceLocation Loc, CXCursor Cursor,
  451                            SourceLocation Loc, CXCursor Cursor,
  456   bool markEntityOccurrenceInFile(const NamedDecl *D, SourceLocation Loc);
  464   CXIdxLoc getIndexLoc(SourceLocation Loc) const;
  476   CXCursor getRefCursor(const NamedDecl *D, SourceLocation Loc);
tools/clang/tools/libclang/CXSourceLocation.cpp
  131   SourceLocation SLoc = CXXUnit->getLocation(File, line, column);
  161   SourceLocation SLoc 
  200   const SourceLocation Loc =
  201     SourceLocation::getFromRawEncoding(location.int_data);
  211   const SourceLocation Loc =
  212     SourceLocation::getFromRawEncoding(location.int_data);
  231   SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data);
  231   SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data);
  240   SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc);
  273   SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data);
  273   SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data);
  313   SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data);
  313   SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data);
  321   SourceLocation SpellLoc = SM.getFileLoc(Loc);
  350   SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data);
  350   SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data);
  357   SourceLocation FileLoc = SM.getFileLoc(Loc);
tools/clang/tools/libclang/CXSourceLocation.h
   30                         SourceLocation Loc) {
   41                                                        SourceLocation Loc) {
   65 static inline SourceLocation translateSourceLocation(CXSourceLocation L) {
   66   return SourceLocation::getFromRawEncoding(L.int_data);
   70   return SourceRange(SourceLocation::getFromRawEncoding(R.begin_int_data),
   71                      SourceLocation::getFromRawEncoding(R.end_int_data));
tools/clang/tools/libclang/CursorVisitor.h
  250   bool VisitTemplateName(TemplateName Name, SourceLocation Loc);
tools/clang/tools/libclang/Indexing.cpp
  174   bool hasAlredyBeenParsed(SourceLocation Loc, FileID FID,
  202   PPRegion getRegion(SourceLocation Loc, FileID FID, const FileEntry *FE) {
  212     SourceLocation RegionLoc = PPRec.findConditionalDirectiveRegionLoc(Loc);
  247   void FileChanged(SourceLocation Loc, FileChangeReason Reason,
  253     SourceLocation MainFileLoc = SM.getLocForStartOfFile(SM.getMainFileID());
  261   void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
  289   void SourceRangeSkipped(SourceRange Range, SourceLocation EndifLoc) override {
  385     SourceLocation Loc = D->getLocation();
  651       SourceLocation Loc = ID->getSourceRange().getBegin();
  981   SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data);
  981   SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data);
  991   SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data);
  991   SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data);
tools/clang/unittests/AST/CommentLexer.cpp
   64   SourceLocation Begin = SourceMgr.getLocForStartOfFile(File);
tools/clang/unittests/AST/CommentParser.cpp
   57   SourceLocation Begin = SourceMgr.getLocForStartOfFile(File);
tools/clang/unittests/AST/MatchVerifier.h
  189     SourceLocation Loc = getLocation(Node);
  203   virtual SourceLocation getLocation(const NodeType &Node) {
  230     SourceLocation Begin = R.getBegin();
  231     SourceLocation End = R.getEnd();
tools/clang/unittests/Basic/SourceManagerTest.cpp
   86   SourceLocation lsqrLoc = toks[0].getLocation();
   87   SourceLocation idLoc = toks[1].getLocation();
   88   SourceLocation rsqrLoc = toks[2].getLocation();
   90   SourceLocation macroExpStartLoc = SourceMgr.translateLineCol(mainFileID, 2, 1);
   91   SourceLocation macroExpEndLoc = SourceMgr.translateLineCol(mainFileID, 2, 6);
  180   auto BeginLoc = SourceMgr.getLocForStartOfFile(MainFileID);
  181   auto EndLoc = SourceMgr.getLocForEndOfFile(MainFileID);
  183   auto BeginEOLLoc = SourceMgr.translateLineCol(MainFileID, 1, 7);
  185   auto HeaderLoc = SourceMgr.getLocForStartOfFile(HeaderFileID);
  296   SourceLocation defLoc = SourceMgr.translateLineCol(mainFileID, 2, 13);
  297   SourceLocation loc1 = SourceMgr.translateLineCol(mainFileID, 3, 8);
  298   SourceLocation loc2 = SourceMgr.translateLineCol(mainFileID, 4, 4);
  299   SourceLocation loc3 = SourceMgr.translateLineCol(mainFileID, 5, 7);
  300   SourceLocation defLoc2 = SourceMgr.translateLineCol(mainFileID, 6, 22);
  321   SourceLocation Loc;
  325   MacroAction(SourceLocation Loc, StringRef Name, unsigned K)
tools/clang/unittests/CodeGen/IncrementalProcessingTest.cpp
   70     SourceLocation MainStartLoc = SM.getLocForStartOfFile(SM.getMainFileID());
   71     SourceLocation InclLoc = MainStartLoc.getLocWithOffset(counter);
tools/clang/unittests/CrossTU/CrossTranslationUnitTest.cpp
   89         llvm::Optional<std::pair<SourceLocation, ASTUnit *>> SLocResult =
   93           SourceLocation OrigSLoc = (*SLocResult).first;
tools/clang/unittests/Index/IndexTests.cpp
   36   static Position fromSourceLocation(SourceLocation Loc,
   78                            ArrayRef<SymbolRelation>, SourceLocation Loc,
   95                             SymbolRoleSet Roles, SourceLocation Loc) override {
tools/clang/unittests/Lex/LexerTest.cpp
  287   SourceLocation lsqrLoc = toks[0].getLocation();
  288   SourceLocation idLoc = toks[1].getLocation();
  289   SourceLocation rsqrLoc = toks[2].getLocation();
  292   SourceLocation Loc;
  319   SourceLocation macroLsqrLoc = toks[3].getLocation();
  320   SourceLocation macroIdLoc = toks[4].getLocation();
  321   SourceLocation macroRsqrLoc = toks[5].getLocation();
  322   SourceLocation fileLsqrLoc = SourceMgr.getSpellingLoc(macroLsqrLoc);
  323   SourceLocation fileIdLoc = SourceMgr.getSpellingLoc(macroIdLoc);
  324   SourceLocation fileRsqrLoc = SourceMgr.getSpellingLoc(macroRsqrLoc);
  350   SourceLocation idLoc1 = toks[6].getLocation();
  351   SourceLocation idLoc2 = toks[7].getLocation();
  352   SourceLocation idLoc3 = toks[8].getLocation();
  353   SourceLocation idLoc4 = toks[9].getLocation();
  373   SourceLocation helper1ArgLoc = toks[20].getLocation();
  465       SourceLocation LookupLocation =
  546   SourceLocation Loc =
tools/clang/unittests/Lex/PPCallbacksTest.cpp
   36   void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok,
   54   SourceLocation HashLoc;
   78   void If(SourceLocation Loc, SourceRange ConditionRange,
   83   void Elif(SourceLocation Loc, SourceRange ConditionRange,
   84             ConditionValueKind ConditionValue, SourceLocation IfLoc) override {
   99   void PragmaOpenCLExtension(clang::SourceLocation NameLoc,
  101                              clang::SourceLocation StateLoc,
  109   SourceLocation NameLoc;
  111   SourceLocation StateLoc;
tools/clang/unittests/Rewrite/RewriterTest.cpp
   20   SourceLocation FileStart;
   24   SourceLocation makeLoc(int Off) { return FileStart.getLocWithOffset(Off); }
tools/clang/unittests/Sema/ExternalSemaSourceTest.cpp
   32   bool MaybeDiagnoseMissingCompleteType(SourceLocation L, QualType T) override {
tools/clang/unittests/Tooling/ASTSelectionTest.cpp
   21   SourceLocation translate(const SourceManager &SM) {
   53       SourceLocation Loc = Location.translate(SM);
tools/clang/unittests/Tooling/CommentHandlerTest.cpp
   39     SourceLocation Start = Loc.getBegin();
tools/clang/unittests/Tooling/FixItTest.cpp
   30 std::string LocationToString(SourceLocation Loc, ASTContext *Context) {
tools/clang/unittests/Tooling/RangeSelectorTest.cpp
  138   auto ExprBegin = E->getSourceRange().getBegin();
  157   const SourceLocation SemiLoc = Range.getEnd().getLocWithOffset(1);
tools/clang/unittests/Tooling/RefactoringActionRulesTest.cpp
   75       SourceLocation Loc =
  102     SourceLocation Cursor =
  165   SourceLocation Cursor =
  224   SourceLocation Cursor =
tools/clang/unittests/Tooling/RefactoringTest.cpp
   38   SourceLocation Location = Context.getLocation(ID, 1, 1);
   46   SourceLocation Location = Context.getLocation(ID, 1, 1);
   54   SourceLocation Location = Context.getLocation(ID, 1, 1);
   63   SourceLocation Location = Context.getLocation(ID, 2, 3);
   72   SourceLocation Location1 = Context.getLocation(ID, 2, 3);
   79   SourceLocation Location2 = Context.getLocation(ID, 4, 4);
 1105     SourceLocation DefaultLoc;
 1214   SourceLocation End = DefaultLoc.getLocWithOffset(20);
 1275   SourceLocation NewLoc = Context.Sources.getLocForStartOfFile(NewID);
 1313   SourceLocation getLoc(unsigned Offset) const {
tools/clang/unittests/Tooling/ReplacementTest.h
   43   tooling::Replacement createReplacement(SourceLocation Start, unsigned Length,
tools/clang/unittests/Tooling/RewriterTestContext.h
   86   SourceLocation getLocation(FileID ID, unsigned Line, unsigned Column) {
   87     SourceLocation Result = Sources.translateFileLineCol(
tools/clang/unittests/Tooling/Syntax/TokensTest.cpp
  168     std::pair<SourceLocation, SourceLocation> Ls;
  168     std::pair<SourceLocation, SourceLocation> Ls;
tools/clang/unittests/Tooling/TestVisitor.h
  163   void Match(StringRef Name, SourceLocation Location) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTUtils.h
  463       llvm::MapVector<clang::NamedDecl *, clang::SourceLocation> &Undefined)
  471                       llvm::SmallVector<std::pair<clang::SourceLocation, bool>,
  518       llvm::SmallVectorImpl<std::pair<clang::Selector, clang::SourceLocation>>
  539           std::pair<clang::ValueDecl *, clang::SourceLocation>> &Pending)
  568   bool MaybeDiagnoseMissingCompleteType(clang::SourceLocation Loc,
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
  119   void moduleImport(SourceLocation import_location, clang::ModuleIdPath path,
  130     for (const std::pair<IdentifierInfo *, SourceLocation> &component : path)
  842                                  SourceLocation OpenParLoc) override {
 1092     void insert(SourceLocation loc, StringRef text) override {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
  266   llvm::SmallVector<std::pair<clang::IdentifierInfo *, clang::SourceLocation>,
tools/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp
  611   clang::SourceLocation start_loc = first_token.getLocation();
  612   clang::SourceLocation end_loc = last_token.getLocation();
tools/lldb/source/Symbol/CxxModuleHandler.cpp
  171 T *createDecl(ASTImporter &importer, Decl *from_d, Args &&... args) {
  172   T *to_d = T::Create(std::forward<Args>(args)...);
tools/lldb/tools/lldb-instr/Instrument.cpp
  241     SourceLocation InsertLoc = Lexer::getLocForEndOfToken(
usr/include/c++/7.4.0/bits/algorithmfwd.h
  369     const _Tp&
  370     max(const _Tp&, const _Tp&);
  370     max(const _Tp&, const _Tp&);
  382     const _Tp&
  383     min(const _Tp&, const _Tp&);
  383     min(const _Tp&, const _Tp&);
usr/include/c++/7.4.0/bits/alloc_traits.h
  387       using allocator_type = allocator<_Tp>;
  389       using value_type = _Tp;
  392       using pointer = _Tp*;
  395       using const_pointer = const _Tp*;
  474 	construct(allocator_type& __a, _Up* __p, _Args&&... __args)
  474 	construct(allocator_type& __a, _Up* __p, _Args&&... __args)
  475 	{ __a.construct(__p, std::forward<_Args>(__args)...); }
  486 	destroy(allocator_type& __a, _Up* __p)
usr/include/c++/7.4.0/bits/allocator.h
  108     class allocator: public __allocator_base<_Tp>
  113       typedef _Tp*       pointer;
  114       typedef const _Tp* const_pointer;
  115       typedef _Tp&       reference;
  116       typedef const _Tp& const_reference;
  117       typedef _Tp        value_type;
  137 	allocator(const allocator<_Tp1>&) throw() { }
usr/include/c++/7.4.0/bits/move.h
   46     inline _GLIBCXX_CONSTEXPR _Tp*
   47     __addressof(_Tp& __r) _GLIBCXX_NOEXCEPT
   72     constexpr _Tp&&
   73     forward(typename std::remove_reference<_Tp>::type& __t) noexcept
   83     constexpr _Tp&&
   84     forward(typename std::remove_reference<_Tp>::type&& __t) noexcept
   98     move(_Tp&& __t) noexcept
  104     : public __and_<__not_<is_nothrow_move_constructible<_Tp>>,
  105                     is_copy_constructible<_Tp>>::type { };
  136     inline _GLIBCXX17_CONSTEXPR _Tp*
  137     addressof(_Tp& __r) noexcept
  143     const _Tp* addressof(const _Tp&&) = delete;
  143     const _Tp* addressof(const _Tp&&) = delete;
  184     typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>,
  185 			      is_move_constructible<_Tp>,
  186 			      is_move_assignable<_Tp>>::value>::type
  187     swap(_Tp& __a, _Tp& __b)
  187     swap(_Tp& __a, _Tp& __b)
  198       _Tp __tmp = _GLIBCXX_MOVE(__a);
usr/include/c++/7.4.0/bits/predefined_ops.h
   64       operator()(_Iterator __it, _Value& __val) const
   89       operator()(_Value& __val, _Iterator __it) const
  176 	operator()(_Iterator __it, _Value& __val)
  214 	operator()(_Value& __val, _Iterator __it)
usr/include/c++/7.4.0/bits/range_access.h
   86     inline _GLIBCXX14_CONSTEXPR _Tp*
   87     begin(_Tp (&__arr)[_Nm])
   96     inline _GLIBCXX14_CONSTEXPR _Tp*
   97     end(_Tp (&__arr)[_Nm])
usr/include/c++/7.4.0/bits/stl_algo.h
 2024 		const _Tp& __val, _Compare __comp)
 2040 		  const _Tp& __val, _Compare __comp)
 2108 		const _Tp& __val, _Compare __comp)
 3900 	 const _Tp& __val)
usr/include/c++/7.4.0/bits/stl_algobase.h
  947 		  const _Tp& __val, _Compare __comp)
usr/include/c++/7.4.0/bits/stl_construct.h
   74     _Construct(_T1* __p, _Args&&... __args)
   74     _Construct(_T1* __p, _Args&&... __args)
   75     { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
   75     { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
  204 	     allocator<_Tp>&)
usr/include/c++/7.4.0/bits/stl_function.h
  108       typedef _Arg 	argument_type;   
  111       typedef _Result 	result_type;  
  121       typedef _Arg1 	first_argument_type; 
  124       typedef _Arg2 	second_argument_type;
  381     struct less : public binary_function<_Tp, _Tp, bool>
  381     struct less : public binary_function<_Tp, _Tp, bool>
  385       operator()(const _Tp& __x, const _Tp& __y) const
  385       operator()(const _Tp& __x, const _Tp& __y) const
  870     : public unary_function<_Tp,_Tp>
  870     : public unary_function<_Tp,_Tp>
  872       _Tp&
  873       operator()(_Tp& __x) const
  876       const _Tp&
  877       operator()(const _Tp& __x) const
usr/include/c++/7.4.0/bits/stl_heap.h
  129 		_Distance __holeIndex, _Distance __topIndex, _Tp __value,
  215 		  _Distance __len, _Tp __value, _Compare __comp)
usr/include/c++/7.4.0/bits/stl_iterator.h
 1224     __make_move_if_noexcept_iterator(_Tp* __i)
usr/include/c++/7.4.0/bits/stl_iterator_base_types.h
  123       typedef _Tp        value_type;
  181       typedef _Tp                         value_type;
  183       typedef _Tp*                        pointer;
  184       typedef _Tp&                        reference;
  192       typedef _Tp                         value_type;
  194       typedef const _Tp*                  pointer;
  195       typedef const _Tp&                  reference;
usr/include/c++/7.4.0/bits/stl_map.h
  102       typedef _Key					key_type;
  103       typedef _Tp					mapped_type;
  104       typedef std::pair<const _Key, _Tp>		value_type;
  104       typedef std::pair<const _Key, _Tp>		value_type;
usr/include/c++/7.4.0/bits/stl_pair.h
  100 	return __and_<is_constructible<_T1, const _U1&>,
  100 	return __and_<is_constructible<_T1, const _U1&>,
  101 		      is_constructible<_T2, const _U2&>>::value;
  101 		      is_constructible<_T2, const _U2&>>::value;
  107 	return __and_<is_convertible<const _U1&, _T1>,
  107 	return __and_<is_convertible<const _U1&, _T1>,
  108 		      is_convertible<const _U2&, _T2>>::value;
  108 		      is_convertible<const _U2&, _T2>>::value;
  114 	return __and_<is_constructible<_T1, _U1&&>,
  114 	return __and_<is_constructible<_T1, _U1&&>,
  115 		      is_constructible<_T2, _U2&&>>::value;
  115 		      is_constructible<_T2, _U2&&>>::value;
  121 	return __and_<is_convertible<_U1&&, _T1>,
  121 	return __and_<is_convertible<_U1&&, _T1>,
  122 		      is_convertible<_U2&&, _T2>>::value;
  122 		      is_convertible<_U2&&, _T2>>::value;
  128 	using __do_converts = __and_<is_convertible<const _U1&, _T1>,
  128 	using __do_converts = __and_<is_convertible<const _U1&, _T1>,
  129 				  is_convertible<_U2&&, _T2>>;
  129 				  is_convertible<_U2&&, _T2>>;
  133 	return __and_<is_constructible<_T1, const _U1&>,
  133 	return __and_<is_constructible<_T1, const _U1&>,
  134 		      is_constructible<_T2, _U2&&>,
  134 		      is_constructible<_T2, _U2&&>,
  142 	using __do_converts = __and_<is_convertible<_U1&&, _T1>,
  142 	using __do_converts = __and_<is_convertible<_U1&&, _T1>,
  143 				  is_convertible<const _U2&, _T2>>;
  143 				  is_convertible<const _U2&, _T2>>;
  147 	return __and_<is_constructible<_T1, _U1&&>,
  147 	return __and_<is_constructible<_T1, _U1&&>,
  148 		      is_constructible<_T2, const _U2&&>,
  148 		      is_constructible<_T2, const _U2&&>,
  209     : private __pair_base<_T1, _T2>
  209     : private __pair_base<_T1, _T2>
  211       typedef _T1 first_type;    /// @c first_type is the first bound type
  212       typedef _T2 second_type;   /// @c second_type is the second bound type
  214       _T1 first;                 /// @c first is a copy of the first object
  215       _T2 second;                /// @c second is a copy of the second object
  252       using _PCCP = _PCC<true, _T1, _T2>;
  252       using _PCCP = _PCC<true, _T1, _T2>;
  260       constexpr pair(const _T1& __a, const _T2& __b)
  260       constexpr pair(const _T1& __a, const _T2& __b)
  269       explicit constexpr pair(const _T1& __a, const _T2& __b)
  269       explicit constexpr pair(const _T1& __a, const _T2& __b)
  283 			    _T1, _T2>;
  283 			    _T1, _T2>;
  291         constexpr pair(const pair<_U1, _U2>& __p)
  291         constexpr pair(const pair<_U1, _U2>& __p)
  311        constexpr pair(_U1&& __x, const _T2& __y)
  311        constexpr pair(_U1&& __x, const _T2& __y)
  312        : first(std::forward<_U1>(__x)), second(__y) { }
  318        explicit constexpr pair(_U1&& __x, const _T2& __y)
  325        constexpr pair(const _T1& __x, _U2&& __y)
  325        constexpr pair(const _T1& __x, _U2&& __y)
  326        : first(__x), second(std::forward<_U2>(__y)) { }
  332        explicit pair(const _T1& __x, _U2&& __y)
  341 	constexpr pair(_U1&& __x, _U2&& __y)
  341 	constexpr pair(_U1&& __x, _U2&& __y)
  342 	: first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { }
  342 	: first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { }
  360 	constexpr pair(pair<_U1, _U2>&& __p)
  360 	constexpr pair(pair<_U1, _U2>&& __p)
  361 	: first(std::forward<_U1>(__p.first)),
  362 	  second(std::forward<_U2>(__p.second)) { }
  379 		__and_<is_copy_assignable<_T1>,
  380 		       is_copy_assignable<_T2>>::value,
  390 		__and_<is_move_assignable<_T1>,
  391 		       is_move_assignable<_T2>>::value,
  402       typename enable_if<__and_<is_assignable<_T1&, const _U1&>,
  402       typename enable_if<__and_<is_assignable<_T1&, const _U1&>,
  403 				is_assignable<_T2&, const _U2&>>::value,
  403 				is_assignable<_T2&, const _U2&>>::value,
  405 	operator=(const pair<_U1, _U2>& __p)
  405 	operator=(const pair<_U1, _U2>& __p)
  413       typename enable_if<__and_<is_assignable<_T1&, _U1&&>,
  413       typename enable_if<__and_<is_assignable<_T1&, _U1&&>,
  414 				is_assignable<_T2&, _U2&&>>::value,
  414 				is_assignable<_T2&, _U2&&>>::value,
  416 	operator=(pair<_U1, _U2>&& __p)
  416 	operator=(pair<_U1, _U2>&& __p)
  419 	  second = std::forward<_U2>(__p.second);
  448     operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
  448     operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
  448     operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
  448     operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
  454     operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
  454     operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
  454     operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
  454     operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
  461     operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
  461     operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
  495     swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y)
  495     swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y)
  495     swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y)
  495     swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y)
  522     constexpr pair<typename __decay_and_strip<_T1>::__type,
  523                    typename __decay_and_strip<_T2>::__type>
  524     make_pair(_T1&& __x, _T2&& __y)
  524     make_pair(_T1&& __x, _T2&& __y)
  526       typedef typename __decay_and_strip<_T1>::__type __ds_type1;
  527       typedef typename __decay_and_strip<_T2>::__type __ds_type2;
  529       return __pair_type(std::forward<_T1>(__x), std::forward<_T2>(__y));
  529       return __pair_type(std::forward<_T1>(__x), std::forward<_T2>(__y));
usr/include/c++/7.4.0/bits/stl_set.h
  110       typedef _Key     key_type;
  111       typedef _Key     value_type;
  119 	rebind<_Key>::other _Key_alloc_type;
usr/include/c++/7.4.0/bits/stl_tree.h
  218       typedef _Rb_tree_node<_Val>* _Link_type;
  231       __gnu_cxx::__aligned_membuf<_Val> _M_storage;
  233       _Val*
  237       const _Val*
  258       typedef _Tp  value_type;
  259       typedef _Tp& reference;
  260       typedef _Tp* pointer;
  265       typedef _Rb_tree_iterator<_Tp>        _Self;
  267       typedef _Rb_tree_node<_Tp>*           _Link_type;
  328       typedef _Tp        value_type;
  329       typedef const _Tp& reference;
  330       typedef const _Tp* pointer;
  332       typedef _Rb_tree_iterator<_Tp> iterator;
  337       typedef _Rb_tree_const_iterator<_Tp>        _Self;
  339       typedef const _Rb_tree_node<_Tp>*           _Link_type;
  447         rebind<_Rb_tree_node<_Val> >::other _Node_allocator;
  454       typedef _Rb_tree_node<_Val>* 		_Link_type;
  455       typedef const _Rb_tree_node<_Val>*	_Const_Link_type;
  554 	  operator()(_Arg&& __arg) const
  563       typedef _Key 				key_type;
  564       typedef _Val 				value_type;
  621 	_M_construct_node(_Link_type __node, _Args&&... __args)
  625 	      ::new(__node) _Rb_tree_node<_Val>;
  640         _M_create_node(_Args&&... __args)
  758       static const _Key&
  782       static const _Key&
  834 	_M_insert_(_Base_ptr __x, _Base_ptr __y, _Arg&& __v, _NodeGen&);
  894 		     const _Key& __k);
  898 		     const _Key& __k) const;
  902 		     const _Key& __k);
  906 		     const _Key& __k) const;
 1011         _M_insert_unique(_Arg&& __x);
usr/include/c++/7.4.0/bits/stl_uninitialized.h
  144 		      const _Tp& __x)
  182 		       const _Tp& __x)
  204 			const _Tp& __x)
  244     uninitialized_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x)
  288 			   _ForwardIterator __result, allocator<_Tp>&)
  644 				allocator<_Tp>&)
usr/include/c++/7.4.0/bits/stl_vector.h
   77 	rebind<_Tp>::other _Tp_alloc_type;
  216     class vector : protected _Vector_base<_Tp, _Alloc>
  227       typedef _Vector_base<_Tp, _Alloc>			_Base;
  232       typedef _Tp					value_type;
  919       _Tp*
  923       const _Tp*
  962 	emplace_back(_Args&&... __args);
 1483 	_M_realloc_insert(iterator __position, _Args&&... __args);
usr/include/c++/7.4.0/bits/unique_ptr.h
  824     make_unique(_Args&&... __args)
  825     { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
usr/include/c++/7.4.0/bits/vector.tcc
  101 				     std::forward<_Args>(__args)...);
  105 	  _M_realloc_insert(end(), std::forward<_Args>(__args)...);
  418 				   std::forward<_Args>(__args)...);
usr/include/c++/7.4.0/ext/aligned_buffer.h
   52       struct _Tp2 { _Tp _M_t; };
   54       alignas(__alignof__(_Tp2::_M_t)) unsigned char _M_storage[sizeof(_Tp)];
   69       _Tp*
   73       const _Tp*
usr/include/c++/7.4.0/ext/alloc_traits.h
  117       { typedef typename _Base_type::template rebind_alloc<_Tp> other; };
usr/include/c++/7.4.0/ext/new_allocator.h
   63       typedef _Tp*       pointer;
   64       typedef const _Tp* const_pointer;
   65       typedef _Tp&       reference;
   66       typedef const _Tp& const_reference;
   67       typedef _Tp        value_type;
   84 	new_allocator(const new_allocator<_Tp1>&) _GLIBCXX_USE_NOEXCEPT { }
  111 	return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp)));
  130       { return size_t(-1) / sizeof(_Tp); }
  135 	construct(_Up* __p, _Args&&... __args)
  135 	construct(_Up* __p, _Args&&... __args)
  136 	{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
  136 	{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
  140 	destroy(_Up* __p) { __p->~_Up(); }
usr/include/c++/7.4.0/initializer_list
   50       typedef _E 		value_type;
   51       typedef const _E& 	reference;
   52       typedef const _E& 	const_reference;
   54       typedef const _E* 	iterator;
   55       typedef const _E* 	const_iterator;
usr/include/c++/7.4.0/tuple
   56     struct __is_empty_non_tuple : is_empty<_Tp> { };
  125       constexpr _Head_base(const _Head& __h)
  132         constexpr _Head_base(_UHead&& __h)
  133 	: _M_head_impl(std::forward<_UHead>(__h)) { }
  159       static constexpr _Head&
  162       static constexpr const _Head&
  165       _Head _M_head_impl;
  186     : public _Tuple_impl<_Idx + 1, _Tail...>,
  187       private _Head_base<_Idx, _Head>
  191       typedef _Tuple_impl<_Idx + 1, _Tail...> _Inherited;
  192       typedef _Head_base<_Idx, _Head> _Base;
  194       static constexpr _Head&
  197       static constexpr const _Head&
  210       constexpr _Tuple_impl(const _Head& __head, const _Tail&... __tail)
  210       constexpr _Tuple_impl(const _Head& __head, const _Tail&... __tail)
  216         constexpr _Tuple_impl(_UHead&& __head, _UTail&&... __tail)
  216         constexpr _Tuple_impl(_UHead&& __head, _UTail&&... __tail)
  217 	: _Inherited(std::forward<_UTail>(__tail)...),
  218 	  _Base(std::forward<_UHead>(__head)) { }
  227 	_Base(std::forward<_Head>(_M_head(__in))) { }
  230         constexpr _Tuple_impl(const _Tuple_impl<_Idx, _UElements...>& __in)
  235         constexpr _Tuple_impl(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in)
  235         constexpr _Tuple_impl(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in)
  242 	_Tuple_impl(allocator_arg_t __tag, const _Alloc& __a)
  248 		    const _Head& __head, const _Tail&... __tail)
  248 		    const _Head& __head, const _Tail&... __tail)
  262         _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a,
  268 	_Tuple_impl(allocator_arg_t __tag, const _Alloc& __a,
  304 	_M_head(*this) = std::forward<_Head>(_M_head(__in));
  313 	  _M_head(*this) = _Tuple_impl<_Idx, _UElements...>::_M_head(__in);
  314 	  _M_tail(*this) = _Tuple_impl<_Idx, _UElements...>::_M_tail(__in);
  323 	    (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in));
  325 	    (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in));
  344     : private _Head_base<_Idx, _Head>
  348       typedef _Head_base<_Idx, _Head> _Base;
  350       static constexpr _Head&
  353       static constexpr const _Head&
  360       constexpr _Tuple_impl(const _Head& __head)
  365         constexpr _Tuple_impl(_UHead&& __head)
  366 	: _Base(std::forward<_UHead>(__head)) { }
  373       : _Base(std::forward<_Head>(_M_head(__in))) { }
  376         constexpr _Tuple_impl(const _Tuple_impl<_Idx, _UHead>& __in)
  380         constexpr _Tuple_impl(_Tuple_impl<_Idx, _UHead>&& __in)
  390 		    const _Head& __head)
  442 	  _M_head(*this) = _Tuple_impl<_Idx, _UHead>::_M_head(__in);
  473       return __and_<is_constructible<_Elements, const _UElements&>...>::value;
  473       return __and_<is_constructible<_Elements, const _UElements&>...>::value;
  479       return __and_<is_convertible<const _UElements&, _Elements>...>::value;
  479       return __and_<is_convertible<const _UElements&, _Elements>...>::value;
  485       return __and_<is_constructible<_Elements, _UElements&&>...>::value;
  485       return __and_<is_constructible<_Elements, _UElements&&>...>::value;
  491       return __and_<is_convertible<_UElements&&, _Elements>...>::value;
  491       return __and_<is_convertible<_UElements&&, _Elements>...>::value;
  497       return  __and_<__not_<is_same<tuple<_Elements...>,
  501                      __not_<is_convertible<_SrcTuple, _Elements...>>,
  502                      __not_<is_constructible<_Elements..., _SrcTuple>>
  508       return  __not_<is_same<tuple<_Elements...>,
  510 			       typename remove_reference<_UElements...>::type
  556     class tuple : public _Tuple_impl<0, _Elements...>
  558       typedef _Tuple_impl<0, _Elements...> _Inherited;
  567           return __and_<is_default_constructible<_Elements>...>::value;
  571           return __and_<__is_implicitly_default_constructible<_Elements>...>
  598             _Elements...>;
  608         constexpr tuple(const _Elements&... __elements)
  619       explicit constexpr tuple(const _Elements&... __elements)
  628                       _Elements...>;
  636                       _Elements...>;
  646         constexpr tuple(_UElements&&... __elements)
  647         : _Inherited(std::forward<_UElements>(__elements)...) { }
  668             _Elements...>;
  678         constexpr tuple(const tuple<_UElements...>& __in)
  702         constexpr tuple(tuple<_UElements...>&& __in)
  730 	      const _Elements&... __elements)
  741                        const _Elements&... __elements)
  767 	tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in)
  771 	tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in)
  853         operator=(const tuple<_UElements...>& __in)
  863         operator=(tuple<_UElements...>&& __in)
  907     class tuple<_T1, _T2> : public _Tuple_impl<0, _T1, _T2>
  907     class tuple<_T1, _T2> : public _Tuple_impl<0, _T1, _T2>
  909       typedef _Tuple_impl<0, _T1, _T2> _Inherited;
  909       typedef _Tuple_impl<0, _T1, _T2> _Inherited;
  939         _TC<is_same<_Dummy, void>::value, _T1, _T2>;
  939         _TC<is_same<_Dummy, void>::value, _T1, _T2>;
  947         constexpr tuple(const _T1& __a1, const _T2& __a2)
  947         constexpr tuple(const _T1& __a1, const _T2& __a2)
  956         explicit constexpr tuple(const _T1& __a1, const _T2& __a2)
  956         explicit constexpr tuple(const _T1& __a1, const _T2& __a2)
  961       using _TMC = _TC<true, _T1, _T2>;
  961       using _TMC = _TC<true, _T1, _T2>;
  971         constexpr tuple(_U1&& __a1, _U2&& __a2)
  971         constexpr tuple(_U1&& __a1, _U2&& __a2)
  995         constexpr tuple(const tuple<_U1, _U2>& __in)
  995         constexpr tuple(const tuple<_U1, _U2>& __in)
 1013         constexpr tuple(tuple<_U1, _U2>&& __in)
 1013         constexpr tuple(tuple<_U1, _U2>&& __in)
 1066 	tuple(allocator_arg_t __tag, const _Alloc& __a)
 1078 	      const _T1& __a1, const _T2& __a2)
 1078 	      const _T1& __a1, const _T2& __a2)
 1090 	      const _T1& __a1, const _T2& __a2)
 1090 	      const _T1& __a1, const _T2& __a2)
 1225         operator=(const tuple<_U1, _U2>& __in)
 1225         operator=(const tuple<_U1, _U2>& __in)
 1233         operator=(tuple<_U1, _U2>&& __in)
 1233         operator=(tuple<_U1, _U2>&& __in)
 1241         operator=(const pair<_U1, _U2>& __in)
 1241         operator=(const pair<_U1, _U2>& __in)
 1250         operator=(pair<_U1, _U2>&& __in)
 1250         operator=(pair<_U1, _U2>&& __in)
 1252 	  this->_M_head(*this) = std::forward<_U1>(__in.first);
 1253 	  this->_M_tail(*this)._M_head(*this) = std::forward<_U2>(__in.second);
 1280     : tuple_element<__i - 1, tuple<_Tail...> > { };
 1288       typedef _Head type;
 1302     constexpr _Head&
 1303     __get_helper(_Tuple_impl<__i, _Head, _Tail...>& __t) noexcept
 1303     __get_helper(_Tuple_impl<__i, _Head, _Tail...>& __t) noexcept
 1304     { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); }
 1304     { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); }
 1307     constexpr const _Head&
 1308     __get_helper(const _Tuple_impl<__i, _Head, _Tail...>& __t) noexcept
 1308     __get_helper(const _Tuple_impl<__i, _Head, _Tail...>& __t) noexcept
 1309     { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); }
 1309     { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); }
 1313     constexpr __tuple_element_t<__i, tuple<_Elements...>>&
 1313     constexpr __tuple_element_t<__i, tuple<_Elements...>>&
 1313     constexpr __tuple_element_t<__i, tuple<_Elements...>>&
 1314     get(tuple<_Elements...>& __t) noexcept
 1319     constexpr const __tuple_element_t<__i, tuple<_Elements...>>&
 1319     constexpr const __tuple_element_t<__i, tuple<_Elements...>>&
 1319     constexpr const __tuple_element_t<__i, tuple<_Elements...>>&
 1320     get(const tuple<_Elements...>& __t) noexcept
 1325     constexpr __tuple_element_t<__i, tuple<_Elements...>>&&
 1325     constexpr __tuple_element_t<__i, tuple<_Elements...>>&&
 1325     constexpr __tuple_element_t<__i, tuple<_Elements...>>&&
 1326     get(tuple<_Elements...>&& __t) noexcept
 1447     constexpr tuple<typename __decay_and_strip<_Elements>::__type...>
 1448     make_tuple(_Elements&&... __args)
 1450       typedef tuple<typename __decay_and_strip<_Elements>::__type...>
 1452       return __result_type(std::forward<_Elements>(__args)...);
 1468 			tuple<_Tp..., __tuple_element_t<_Idx, _Tuple>>,
 1468 			tuple<_Tp..., __tuple_element_t<_Idx, _Tuple>>,
 1468 			tuple<_Tp..., __tuple_element_t<_Idx, _Tuple>>,
 1475       typedef tuple<_Tp...> __type;
 1503       typedef tuple<_Ts...> __type;
 1509       typedef typename __combine_tuples<tuple<_T1s..., _T2s...>,
 1509       typedef typename __combine_tuples<tuple<_T1s..., _T2s...>,
 1550         _S_do(_Tp&& __tp, _Tpls&&... __tps, _Us&&... __us)
 1565 	_S_do(_Us&&... __us)
 1588     constexpr tuple<_Elements&...>
 1589     tie(_Elements&... __args) noexcept
usr/include/c++/7.4.0/type_traits
  215     : public __is_void_helper<typename remove_cv<_Tp>::type>::type
  326     : public __is_integral_helper<typename remove_cv<_Tp>::type>::type
  354     : public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type
  381     : public __is_pointer_helper<typename remove_cv<_Tp>::type>::type
  567     : public __is_null_pointer_helper<typename remove_cv<_Tp>::type>::type
  581     : public __or_<is_lvalue_reference<_Tp>,
  582                    is_rvalue_reference<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  602                           is_void<_Tp>>>::type
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  631     : public __is_member_pointer_helper<typename remove_cv<_Tp>::type>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  762     typename add_rvalue_reference<_Tp>::type declval() noexcept;
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  798       typedef decltype(__test<_Tp>(0)) type;
  811                remove_all_extents<_Tp>::type>::type
  825     : public __is_destructible_safe<_Tp>::type
  889       typedef decltype(__test<_Tp>(0)) type;
  894     : public __and_<__not_<is_void<_Tp>>,
  895                     __is_default_constructible_impl<_Tp>>
  915     : public __is_default_constructible_atom<_Tp>::type
  921     : public __is_default_constructible_safe<_Tp>::type
  984       typedef decltype(__test<_Tp, _Arg>(0)) type;
  989     : public __and_<is_destructible<_Tp>,
  990                     __is_direct_constructible_impl<_Tp, _Arg>>
 1072 			 __is_direct_constructible_ref_cast<_Tp, _Arg>,
 1073 			 __is_direct_constructible_new_safe<_Tp, _Arg>
 1079     : public __is_direct_constructible_new<_Tp, _Arg>::type
 1119     : public __is_direct_constructible<_Tp, _Arg>
 1130     : public __is_constructible_impl<_Tp, _Args...>::type
 1142     : public is_constructible<_Tp, const _Tp&>
 1142     : public is_constructible<_Tp, const _Tp&>
 1148     : public __is_copy_constructible_impl<_Tp>
 1160     : public is_constructible<_Tp, _Tp&&>
 1160     : public is_constructible<_Tp, _Tp&&>
 1166     : public __is_move_constructible_impl<_Tp>
 1215     : public __and_<is_constructible<_Tp, _Args...>,
 1216 		    __is_nt_constructible_impl<_Tp, _Args...>>
 1246     : public is_nothrow_constructible<_Tp, _Tp&&>
 1246     : public is_nothrow_constructible<_Tp, _Tp&&>
 1252     : public __is_nothrow_move_constructible_impl<_Tp>
 1286     : public is_assignable<_Tp&, const _Tp&>
 1286     : public is_assignable<_Tp&, const _Tp&>
 1292     : public __is_copy_assignable_impl<_Tp>
 1304     : public is_assignable<_Tp&, _Tp&&>
 1304     : public is_assignable<_Tp&, _Tp&&>
 1310     : public __is_move_assignable_impl<_Tp>
 1352     : public is_nothrow_assignable<_Tp&, _Tp&&>
 1352     : public is_nothrow_assignable<_Tp&, _Tp&&>
 1358     : public __is_nt_move_assignable_impl<_Tp>
 1377     static void __helper(const _Tp&);
 1380     static true_type __test(const _Tp&,
 1381                             decltype(__helper<const _Tp&>({}))* = 0);
 1390     typedef decltype(__test(declval<_Tp>())) type;
 1395       : public __is_implicitly_default_constructible_impl<_Tp>::type
 1400       : public __and_<is_default_constructible<_Tp>,
 1401                       __is_implicitly_default_constructible_safe<_Tp>>
 1526 	static void __test_aux(_To1);
 1538       typedef decltype(__test<_From, _To>(0)) type;
 1538       typedef decltype(__test<_From, _To>(0)) type;
 1545     : public __is_convertible_helper<_From, _To>::type
 1545     : public __is_convertible_helper<_From, _To>::type
 1554     { typedef _Tp     type; };
 1558     { typedef _Tp     type; };
 1563     { typedef _Tp     type; };
 1574       remove_const<typename remove_volatile<_Tp>::type>::type     type;
 1629     { typedef _Tp   type; };
 1633     { typedef _Tp   type; };
 1659     { typedef _Tp&&   type; };
 1664     : public __add_rvalue_reference_helper<_Tp>
 1955     { typedef _Tp     type; };
 2104     { typedef typename remove_cv<_Up>::type __type; };
 2118       typedef typename remove_reference<_Tp>::type __remove_type;
 2131       typedef _Tp __type;
 2144 	typename decay<_Tp>::type>::__type __type;
 2157     { typedef _Tp type; };
 2171     { typedef _Iffalse type; };
 2574       typename remove_reference<_Tp>::type>::type>::type
 2579     typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>,
 2580 			      is_move_constructible<_Tp>,
 2581 			      is_move_assignable<_Tp>>::value>::type
 2582     swap(_Tp&, _Tp&)
 2582     swap(_Tp&, _Tp&)
 2609           noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>()))
 2609           noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>()))
 2629       typedef decltype(__test<_Tp>(0)) type;
 2639     : public __is_nothrow_swappable_impl<_Tp>::type
utils/unittest/googlemock/include/gmock/gmock-matchers.h
  178   virtual bool MatchAndExplain(T x, MatchResultListener* listener) const = 0;
  206   bool operator()(const A& a, const B& b) const { return a == b; }
  206   bool operator()(const A& a, const B& b) const { return a == b; }
  258   bool MatchAndExplain(T x, MatchResultListener* listener) const {
  263   bool Matches(T x) const {
  277   void ExplainMatchResultTo(T x, ::std::ostream* os) const {
  293   explicit MatcherBase(const MatcherInterface<T>* impl)
  310   ::testing::internal::linked_ptr<const MatcherInterface<T> > impl_;
  321 class Matcher : public internal::MatcherBase<T> {
  329   explicit Matcher(const MatcherInterface<T>* impl)
  334   Matcher(T value);  // NOLINT
  486 inline Matcher<T> MakeMatcher(const MatcherInterface<T>* impl) {
  486 inline Matcher<T> MakeMatcher(const MatcherInterface<T>* impl) {
  519   static Matcher<T> Cast(const M& polymorphic_matcher_or_value) {
  519   static Matcher<T> Cast(const M& polymorphic_matcher_or_value) {
  536             internal::ImplicitlyConvertible<M, Matcher<T> >::value>());
  536             internal::ImplicitlyConvertible<M, Matcher<T> >::value>());
  540   static Matcher<T> CastImpl(const M& value, BooleanConstant<false>) {
  540   static Matcher<T> CastImpl(const M& value, BooleanConstant<false>) {
  547   static Matcher<T> CastImpl(const M& polymorphic_matcher_or_value,
  547   static Matcher<T> CastImpl(const M& polymorphic_matcher_or_value,
  629   static inline Matcher<T> Cast(const M& polymorphic_matcher_or_value) {
  629   static inline Matcher<T> Cast(const M& polymorphic_matcher_or_value) {
  630     return internal::MatcherCastImpl<T, M>::Cast(polymorphic_matcher_or_value);
  630     return internal::MatcherCastImpl<T, M>::Cast(polymorphic_matcher_or_value);
  643   static inline Matcher<T> Cast(const Matcher<U>& matcher) {
  667 inline Matcher<T> SafeMatcherCast(const M& polymorphic_matcher) {
  667 inline Matcher<T> SafeMatcherCast(const M& polymorphic_matcher) {
  668   return SafeMatcherCastImpl<T>::Cast(polymorphic_matcher);
  897   explicit ComparisonBase(const Rhs& rhs) : rhs_(rhs) {}
  899   operator Matcher<Lhs>() const {
  900     return MakeMatcher(new Impl<Lhs>(rhs_));
  905   class Impl : public MatcherInterface<Lhs> {
  907     explicit Impl(const Rhs& rhs) : rhs_(rhs) {}
  909         Lhs lhs, MatchResultListener* /* listener */) const {
  921     Rhs rhs_;
  924   Rhs rhs_;
  929 class EqMatcher : public ComparisonBase<EqMatcher<Rhs>, Rhs, AnyEq> {
  929 class EqMatcher : public ComparisonBase<EqMatcher<Rhs>, Rhs, AnyEq> {
  931   explicit EqMatcher(const Rhs& rhs)
 3760 inline internal::EqMatcher<T> Eq(T x) { return internal::EqMatcher<T>(x); }
 3760 inline internal::EqMatcher<T> Eq(T x) { return internal::EqMatcher<T>(x); }
utils/unittest/googletest/include/gtest/gtest-printers.h
  140   static void PrintValue(const T& value, ::std::ostream* os) {
  205     ::std::basic_ostream<Char, CharTraits>& os, const T& x) {
  206   TypeWithoutFormatter<T,
  207       (internal::IsAProtocolMessage<T>::value ? kProtobuf :
  208        internal::ImplicitlyConvertible<const T&, internal::BiggestInt>::value ?
  223 void DefaultPrintNonContainerTo(const T& value, ::std::ostream* os) {
  276   static ::std::string Format(const ToPrint& value) {
  351     const T1& value, const T2& /* other_operand */) {
  351     const T1& value, const T2& /* other_operand */) {
  352   return FormatForComparison<T1, T2>::Format(value);
  352   return FormatForComparison<T1, T2>::Format(value);
  366 void UniversalPrint(const T& value, ::std::ostream* os);
  373                     const C& container, ::std::ostream* os) {
  439                     const T& value, ::std::ostream* os) {
  455 void PrintTo(const T& value, ::std::ostream* os) {
  478   DefaultPrintTo(IsContainerTest<T>(0), is_pointer<T>(), value, os);
  677 void PrintTo(const ::std::pair<T1, T2>& value, ::std::ostream* os) {
  677 void PrintTo(const ::std::pair<T1, T2>& value, ::std::ostream* os) {
  681   UniversalPrinter<T1>::Print(value.first, os);
  683   UniversalPrinter<T2>::Print(value.second, os);
  699   static void Print(const T& value, ::std::ostream* os) {
  784   static void Print(const T& value, ::std::ostream* os) {
  853 void UniversalPrint(const T& value, ::std::ostream* os) {
  856   typedef T T1;
  981 ::std::string PrintToString(const T& value) {
  983   internal::UniversalTersePrinter<T>::Print(value, &ss);
utils/unittest/googletest/include/gtest/gtest.h
 1377                                    const T1& lhs, const T2& rhs) {
 1377                                    const T1& lhs, const T2& rhs) {
 1389                             const T1& lhs,
 1390                             const T2& rhs) {
 1419                                  const T1& lhs,
 1420                                  const T2& rhs) {
utils/unittest/googletest/include/gtest/internal/custom/raw-ostream.h
   29   static const T& printable(const T& V) { return V; }
   29   static const T& printable(const T& V) { return V; }
   35 auto printable(const T &V) -> decltype(StreamSwitch<T>::printable(V)) {
   35 auto printable(const T &V) -> decltype(StreamSwitch<T>::printable(V)) {
   37   return StreamSwitch<T>::printable(V);
utils/unittest/googletest/include/gtest/internal/gtest-internal.h
   94 ::std::string PrintToString(const T& value);
  830 struct AddReference { typedef T& type; };  // NOLINT
  863   static typename AddReference<From>::type MakeFrom();