llvm-project/clang
Sam McCall a76e68c970 [CodeComplete] Member completion for concept-constrained types.
Summary:
The basic idea is to walk through the concept definition, looking for
t.foo() where t has the constrained type.

In this patch:
 - nested types are recognized and offered after ::
 - variable/function members are recognized and offered after the correct
   dot/arrow/colon trigger
 - member functions are recognized (anything directly called). parameter
   types are presumed to be the argument types. parameters are unnamed.
 - result types are available when a requirement has a type constraint.
   These are printed as constraints, except same_as<T> which prints as T.

Not in this patch:
 - support for merging/overloading when two locations describe the same member.
   The last one wins, for any given name. This is probably important...
 - support for nested template members (T::x<int>)
 - support for completing members of (instantiations of) template template parameters

Reviewers: nridge, saar.raz

Subscribers: mgrang, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D73649
2020-03-31 18:43:24 +02:00
..
INPUTS
bindings Hopefully fixing a failing build bot. 2020-02-18 11:39:23 -05:00
cmake [Fuchsia] Use -ffile-prefix-map 2020-03-19 15:14:15 -07:00
docs Add a release note for attribute plugins 2020-03-26 15:01:57 +00:00
examples Const-initialize ParsedAttrInfos 2020-03-28 19:04:53 +01:00
include [CodeComplete] Member completion for concept-constrained types. 2020-03-31 18:43:24 +02:00
lib [CodeComplete] Member completion for concept-constrained types. 2020-03-31 18:43:24 +02:00
runtime
test [CodeComplete] Member completion for concept-constrained types. 2020-03-31 18:43:24 +02:00
tools [OPENMP50]Add basic support for array-shaping operation. 2020-03-30 09:18:24 -04:00
unittests [Syntax] Remove delayed folding from tree building. 2020-03-31 09:47:50 +02:00
utils [ARMMVE] Create fewer temporary SmallVectors 2020-03-29 22:31:26 +02:00
www [www] cxx_status: Update Reflection TS to Cologne draft 2020-03-09 14:51:11 -04:00
.clang-format
.clang-tidy - Update .clang-tidy to ignore parameters of main like functions for naming violations in clang and llvm directory 2020-01-31 16:49:45 +00:00
.gitignore
CMakeLists.txt Move CLANG_SYSTEMZ_DEFAULT_ARCH to config.h. 2020-03-30 14:16:17 -04:00
CODE_OWNERS.TXT
INSTALL.txt
LICENSE.TXT
ModuleInfo.txt
NOTES.txt
README.txt [NFC] test commit reverted 2019-12-21 22:12:07 +04:00

README.txt

//===----------------------------------------------------------------------===//
// C Language Family Front-end
//===----------------------------------------------------------------------===//

Welcome to Clang.  This is a compiler front-end for the C family of languages
(C, C++, Objective-C, and Objective-C++) which is built as part of the LLVM
compiler infrastructure project.

Unlike many other compiler frontends, Clang is useful for a number of things
beyond just compiling code: we intend for Clang to be host to a number of
different source-level tools.  One example of this is the Clang Static Analyzer.

If you're interested in more (including how to build Clang) it is best to read
the relevant web sites.  Here are some pointers:

Information on Clang:             http://clang.llvm.org/
Building and using Clang:         http://clang.llvm.org/get_started.html
Clang Static Analyzer:            http://clang-analyzer.llvm.org/
Information on the LLVM project:  http://llvm.org/

If you have questions or comments about Clang, a great place to discuss them is
on the Clang development mailing list:
  http://lists.llvm.org/mailman/listinfo/cfe-dev

If you find a bug in Clang, please file it in the LLVM bug tracker:
  http://llvm.org/bugs/