Skip to content

Instantly share code, notes, and snippets.

@Asher-
Created January 10, 2018 04:02
Show Gist options
  • Save Asher-/57a96a650480e6f8899b24a4578f1ac1 to your computer and use it in GitHub Desktop.
Save Asher-/57a96a650480e6f8899b24a4578f1ac1 to your computer and use it in GitHub Desktop.
[asher:Zero] [23:01:01] [Tue Jan 09] [~/Projects/Source/llvm-build/bin]
∴ ./clang++ -I/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include -o ~/test ~/test.cc
In file included from /Users/asher/test.cc:1:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/Tooling/Tooling.h:33:
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/AST/ASTConsumer.h:124:66: error: use of undeclared identifier 'nullptr'
virtual ASTMutationListener *GetASTMutationListener() { return nullptr; }
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/AST/ASTConsumer.h:129:12: error: use of undeclared identifier 'nullptr'
return nullptr;
^
In file included from /Users/asher/test.cc:1:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/Tooling/Tooling.h:34:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/Basic/Diagnostic.h:18:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/Basic/DiagnosticIDs.h:18:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/Basic/LLVM.h:22:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:19:
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/type_traits.h:53:32: error: a space is required between consecutive right
angle brackets (use '> >')
struct isPodLike<std::pair<T, U>> {
^~
> >
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/type_traits.h:65:23: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
using UnderlyingT = typename std::remove_reference<T>::type;
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/type_traits.h:78:59: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
struct add_lvalue_reference_if_not_pointer { using type = T &; };
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/type_traits.h:83:16: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
using type = T;
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/type_traits.h:89:46: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
struct add_const_past_pointer { using type = const T; };
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/type_traits.h:94:16: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
using type = const typename std::remove_pointer<T>::type *;
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/type_traits.h:99:16: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
using type = const T &;
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/type_traits.h:104:16: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
using type = typename add_const_past_pointer<T>::type;
^
In file included from /Users/asher/test.cc:1:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/Tooling/Tooling.h:34:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/Basic/Diagnostic.h:18:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/Basic/DiagnosticIDs.h:18:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/Basic/LLVM.h:22:
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:35:22: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
using SimpleType = From; // The real type this represents...
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:42:30: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
using NonConstSimpleType = typename simplify_type<From>::SimpleType;
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:44:7: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
typename add_const_past_pointer<NonConstSimpleType>::type;
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:46:7: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
typename add_lvalue_reference_if_not_pointer<SimpleType>::type;
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:83:50: error: a space is required between consecutive right
angle brackets (use '> >')
struct isa_impl_cl<To, const std::unique_ptr<From>> {
^~
> >
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:156:20: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
using ret_type = To &; // Normal case, return Ty&
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:159:20: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
using ret_type = const To &; // Normal case, return Ty&
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:163:20: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
using ret_type = To *; // Pointer arg case, return Ty*
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:167:20: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
using ret_type = const To *; // Constant pointer arg case, return const Ty*
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:171:20: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
using ret_type = const To *; // Constant pointer arg case, return const Ty*
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:175:48: error: a space is required between consecutive right
angle brackets (use '> >')
struct cast_retty_impl<To, std::unique_ptr<From>> {
^~
> >
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:177:23: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
using PointerType = typename cast_retty_impl<To, From *>::ret_type;
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:178:22: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
using ResultType = typename std::remove_pointer<PointerType>::type;
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:181:20: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
using ret_type = std::unique_ptr<ResultType>;
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:189:20: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:195:20: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:200:20: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
using ret_type = typename cast_retty_wrap<
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:261:48: error: a space is required between consecutive right
angle brackets (use '> >')
inline typename cast_retty<X, std::unique_ptr<Y>>::ret_type
^~
> >
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:262:25: warning: rvalue references are a C++11 extension
[-Wc++11-extensions]
cast(std::unique_ptr<Y> &&Val) {
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:264:20: warning: alias declarations are a C++11 extension
[-Wc++11-extensions]
using ret_type = typename cast_retty<X, std::unique_ptr<Y>>::ret_type;
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:264:60: error: a space is required between consecutive right
angle brackets (use '> >')
using ret_type = typename cast_retty<X, std::unique_ptr<Y>>::ret_type;
^~
> >
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:304:48: error: a space is required between consecutive right
angle brackets (use '> >')
inline typename cast_retty<X, std::unique_ptr<Y>>::ret_type
^~
> >
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:305:33: warning: rvalue references are a C++11 extension
[-Wc++11-extensions]
cast_or_null(std::unique_ptr<Y> &&Val) {
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:368:23: warning: 'auto' type specifier is a C++11 extension
[-Wc++11-extensions]
LLVM_NODISCARD inline auto unique_dyn_cast(std::unique_ptr<Y> &Val)
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:368:23: error: 'auto' not allowed in function return type
LLVM_NODISCARD inline auto unique_dyn_cast(std::unique_ptr<Y> &Val)
^~~~
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:368:68: error: expected ';' at end of declaration
LLVM_NODISCARD inline auto unique_dyn_cast(std::unique_ptr<Y> &Val)
^
;
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:369:5: error: cannot use arrow operator on a type
-> decltype(cast<X>(Val)) {
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:376:23: warning: 'auto' type specifier is a C++11 extension
[-Wc++11-extensions]
LLVM_NODISCARD inline auto unique_dyn_cast(std::unique_ptr<Y> &&Val)
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:376:63: warning: rvalue references are a C++11 extension
[-Wc++11-extensions]
LLVM_NODISCARD inline auto unique_dyn_cast(std::unique_ptr<Y> &&Val)
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:376:23: error: 'auto' not allowed in function return type
LLVM_NODISCARD inline auto unique_dyn_cast(std::unique_ptr<Y> &&Val)
^~~~
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:376:69: error: expected ';' at end of declaration
LLVM_NODISCARD inline auto unique_dyn_cast(std::unique_ptr<Y> &&Val)
^
;
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:377:5: error: cannot use arrow operator on a type
-> decltype(cast<X>(Val)) {
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:384:23: warning: 'auto' type specifier is a C++11 extension
[-Wc++11-extensions]
LLVM_NODISCARD inline auto unique_dyn_cast_or_null(std::unique_ptr<Y> &Val)
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:384:23: error: 'auto' not allowed in function return type
LLVM_NODISCARD inline auto unique_dyn_cast_or_null(std::unique_ptr<Y> &Val)
^~~~
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:384:76: error: expected ';' at end of declaration
LLVM_NODISCARD inline auto unique_dyn_cast_or_null(std::unique_ptr<Y> &Val)
^
;
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:385:5: error: cannot use arrow operator on a type
-> decltype(cast<X>(Val)) {
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:392:23: warning: 'auto' type specifier is a C++11 extension
[-Wc++11-extensions]
LLVM_NODISCARD inline auto unique_dyn_cast_or_null(std::unique_ptr<Y> &&Val)
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:392:71: warning: rvalue references are a C++11 extension
[-Wc++11-extensions]
LLVM_NODISCARD inline auto unique_dyn_cast_or_null(std::unique_ptr<Y> &&Val)
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:392:23: error: 'auto' not allowed in function return type
LLVM_NODISCARD inline auto unique_dyn_cast_or_null(std::unique_ptr<Y> &&Val)
^~~~
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/Casting.h:392:77: error: expected ';' at end of declaration
LLVM_NODISCARD inline auto unique_dyn_cast_or_null(std::unique_ptr<Y> &&Val)
^
;
fatal error: too many errors emitted, stopping now [-ferror-limit=]
31 warnings and 20 errors generated.
#include "clang/Tooling/Tooling.h"
@Asher-
Copy link
Author

Asher- commented Jan 10, 2018

[asher:Zero] [23:06:11] [Tue Jan 09] [/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/bin]
∴ ./clang++ -std=c++11 -I/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include -o ~/test ~/test.cc
In file included from /Users/asher/test.cc:1:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/Tooling/Tooling.h:34:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/Basic/Diagnostic.h:18:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/Basic/DiagnosticIDs.h:20:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/ADT/STLExtras.h:21:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/ADT/SmallVector.h:20:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/MathExtras.h:18:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/SwapByteOrder.h:19:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/DataTypes.h:33:
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:313:9: error: no member named 'signbit' in the global namespace
using ::signbit;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:314:9: error: no member named 'fpclassify' in the global namespace
using ::fpclassify;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:315:9: error: no member named 'isfinite' in the global namespace; did you
mean 'finite'?
using ::isfinite;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/math.h:757:12: note: 'finite' declared here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
^
In file included from /Users/asher/test.cc:1:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/Tooling/Tooling.h:34:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/Basic/Diagnostic.h:18:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/Basic/DiagnosticIDs.h:20:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/ADT/StringRef.h:13:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/ADT/STLExtras.h:21:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/ADT/SmallVector.h:20:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/MathExtras.h:18:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/SwapByteOrder.h:19:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/DataTypes.h:33:
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:316:9: error: no member named 'isinf' in the global namespace
using ::isinf;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:317:9: error: no member named 'isnan' in the global namespace
using ::isnan;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:318:9: error: no member named 'isnormal' in the global namespace
using ::isnormal;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:319:9: error: no member named 'isgreater' in the global namespace
using ::isgreater;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:320:9: error: no member named 'isgreaterequal' in the global namespace
using ::isgreaterequal;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:321:9: error: no member named 'isless' in the global namespace
using ::isless;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:322:9: error: no member named 'islessequal' in the global namespace
using ::islessequal;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:323:9: error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:324:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:325:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
~~^
13 errors generated.

@Asher-
Copy link
Author

Asher- commented Jan 10, 2018

∴ ./clang++ -v -c -std=c++11 -I/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include -o ~/test ~/test.cc
clang version 6.0.0 (trunk 319720)
Target: x86_64-apple-darwin17.3.0
Thread model: posix
InstalledDir: /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/bin/.
"/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/bin/clang-6.0" -cc1 -triple x86_64-apple-macosx10.13.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name test.cc -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu penryn -dwarf-column-info -debugger-tuning=lldb -target-linker-version 302.3.1 -v -coverage-notes-file /Users/asher/test.gcno -resource-dir /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/lib/clang/6.0.0 -I /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include -stdlib=libc++ -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/bin -ferror-limit 19 -fmessage-length 146 -stack-protector 1 -fblocks -fencode-extended-block-signature -fobjc-runtime=macosx-10.13.0 -fcxx-exceptions -fexceptions -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o /Users/asher/test -x c++ /Users/asher/test.cc
clang -cc1 version 6.0.0 based upon LLVM 6.0.0svn default target x86_64-apple-darwin17.3.0
ignoring nonexistent directory "/usr/include/c++/v1"
ignoring nonexistent directory "/usr/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1
/usr/local/include
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/lib/clang/6.0.0/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
In file included from /Users/asher/test.cc:1:
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/math.h:499:7: warning: macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if !(__DARWIN_NO_LONG_LONG)
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/sys/cdefs.h:687:32: note: expanded from macro '__DARWIN_NO_LONG_LONG'
#define __DARWIN_NO_LONG_LONG (defined(STRICT_ANSI)
^
In file included from /Users/asher/test.cc:1:
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/math.h:499:7: warning: macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/sys/cdefs.h:689:9: note: expanded from macro '__DARWIN_NO_LONG_LONG'
&& !defined(GNUG))
^
In file included from /Users/asher/test.cc:3:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/AST/AST.h:18:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/AST/ASTContext.h:18:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/AST/ASTTypeTraits.h:20:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/AST/Decl.h:17:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/AST/APValue.h:18:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/ADT/APFloat.h:20:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/ADT/APInt.h:20:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/MathExtras.h:18:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/SwapByteOrder.h:19:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/DataTypes.h:33:
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:313:9: error: no member named 'signbit' in the global namespace
using ::signbit;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:314:9: error: no member named 'fpclassify' in the global namespace
using ::fpclassify;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:315:9: error: no member named 'isfinite' in the global namespace; did you
mean 'finite'?
using ::isfinite;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/math.h:757:12: note: 'finite' declared here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
^
In file included from /Users/asher/test.cc:3:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/AST/AST.h:18:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/AST/ASTContext.h:18:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/AST/ASTTypeTraits.h:20:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/AST/Decl.h:17:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/AST/APValue.h:18:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/ADT/APFloat.h:20:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/ADT/APInt.h:20:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/MathExtras.h:18:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/SwapByteOrder.h:19:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/llvm/Support/DataTypes.h:33:
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:316:9: error: no member named 'isinf' in the global namespace
using ::isinf;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:317:9: error: no member named 'isnan' in the global namespace
using ::isnan;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:318:9: error: no member named 'isnormal' in the global namespace
using ::isnormal;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:319:9: error: no member named 'isgreater' in the global namespace
using ::isgreater;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:320:9: error: no member named 'isgreaterequal' in the global namespace
using ::isgreaterequal;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:321:9: error: no member named 'isless' in the global namespace
using ::isless;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:322:9: error: no member named 'islessequal' in the global namespace
using ::islessequal;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:323:9: error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:324:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
~~^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/c++/v1/cmath:325:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
~~^
2 warnings and 13 errors generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment