GithubHelp home page GithubHelp logo

microsoft / clang Goto Github PK

View Code? Open in Web Editor NEW
192.0 85.0 66.0 157.33 MB

License: Other

CMake 0.17% Objective-C 4.90% C++ 69.41% C 22.12% Makefile 0.01% Python 0.80% Objective-C++ 0.82% M 0.01% Cuda 0.34% Mathematica 0.01% Shell 0.01% Assembly 0.05% Fortran 0.01% LLVM 0.03% Perl 0.10% HTML 1.14% CSS 0.01% JavaScript 0.05% Rust 0.01% Roff 0.01%

clang's Issues

va_start is not supported on sysv abi?

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?

Can't compile WinRT application

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:

  1. C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\winrt\windows.foundation.collections.h(168,10): error : ISO C++ forbids forward references to 'enum' types
    enum CollectionsChange;
  2. C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\winrt\Windows.Foundation.h(8831,26): error : ISO C++ forbids forward references to 'enum' types
    typedef enum PropertyType PropertyType;

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.

SourceLocation.from_position

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.