microsoft / clang Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
//===----------------------------------------------------------------------===// // 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/
Hello!!!
I tried to compile my WinRT application(fully written on C++, not C++/CX) with "CLang 3.7 with Microsoft Codegen (v140_clang_3_7)", but could not. I use Visual Studio 2015 Update 2 with March 2016 CLang.
Errors:
Another issue produced when compiling template
`template
struct NOVTABLE RemoveIUnknown abstract : TInterface
{
static_assert(std::is_base_of<IUnknown, TInterface>::value, "TInterface must inherit IUnknown");
operator TInterface*() NOEXCEPT
{
return this;
}
private:
STDMETHODIMP_(ULONG) AddRef();
STDMETHODIMP_(ULONG) Release();
STDMETHODIMP QueryTInterface(IID, void **);
};`
variable has incomplete type 'struct RemoveIUnknown'
RemoveIUnknown abstract : TInterface
There were many others errors, but I think, that listed above are the most interesting.
I wonder what is the IR like in compiler front end before they lowering into X86 MPX Instructions
Compiled on Win64, using clang-cl.
Test code:
int __attribute__((sysv_abi)) my_sprintf_s(char *buffer, size_t sizeOfBuffer, const char *format, ...)
{
va_list arg_list;
va_start(arg_list, format);
int ret = vsprintf_s(buffer, sizeOfBuffer, format, arg_list);
va_end(arg_list);
//__builtin_va_list v_list;
//__builtin_va_start(v_list, format);
//int ret = vsprintf_s(buffer, sizeOfBuffer, format, v_list);
//__builtin_va_end(v_list);
return ret;
}
Neither will compile, I get:
error : 'va_start' used in System V ABI function
How can I deal with this?
Hello,
How can I find a function name using a specific line of a file?
I have tried SourceLocation, from_position but it returns None!
There are important files that Microsoft projects should all have that are not present in this repository. A pull request has been opened to add the missing file(s). When the pr is merged this issue will be closed automatically.
Microsoft teams can learn more about this effort and share feedback within the open source guidance available internally.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.