Skip to content

Commit

Permalink
Update XcodeWarnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jonreid committed Apr 6, 2019
1 parent 850b2f8 commit 1ae4319
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions Source/XcodeWarnings.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,27 @@
// Copyright 2019 Jonathan M. Reid. See LICENSE.txt
// Source: https://github.com/jonreid/XcodeWarnings

// Apple Clang - Address Sanitizer
CLANG_ADDRESS_SANITIZER_CONTAINER_OVERFLOW = YES

// Apple Clang - Code Generation
GCC_STRICT_ALIASING = YES
GCC_REUSE_STRINGS = YES
GCC_NO_COMMON_BLOCKS = YES

// Apple Clang - Language
GCC_ENABLE_TRIGRAPHS = NO

// Apple Clang - Preprocessing
ENABLE_STRICT_OBJC_MSGSEND = YES
GCC_ENABLE_TRIGRAPHS = NO

// Apple Clang - Undefined Behavior Sanitizer
CLANG_UNDEFINED_BEHAVIOR_SANITIZER_INTEGER = YES
CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
CLANG_ADDRESS_SANITIZER_CONTAINER_OVERFLOW = YES
// CLANG_ANALYZER_SECURITY_BUFFER_OVERFLOW_EXPERIMENTAL = YES // Currently causes an error

// Apple Clang - Warning Policies
//GCC_TREAT_WARNINGS_AS_ERRORS = YES
//GCC_WARN_PEDANTIC = YES
//GCC_TREAT_WARNINGS_AS_ERRORS = YES

// Apple Clang - Warnings - All languages
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES
Expand All @@ -40,12 +48,15 @@ GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES
GCC_WARN_ABOUT_MISSING_NEWLINE = YES
CLANG_WARN_ASSIGN_ENUM = YES
CLANG_WARN_PRIVATE_MODULE = YES
GCC_WARN_ABOUT_POINTER_SIGNEDNESS = YES
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES
CLANG_WARN_SEMICOLON_BEFORE_METHOD_BODY = YES
GCC_WARN_SIGN_COMPARE = YES
CLANG_WARN_STRICT_PROTOTYPES = YES
CLANG_WARN_COMMA = YES
CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES
CLANG_WARN_PRAGMA_PACK = YES
GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = YES
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES
GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES
Expand All @@ -58,15 +69,17 @@ GCC_WARN_UNUSED_LABEL = YES
//GCC_WARN_UNUSED_PARAMETER = YES
GCC_WARN_UNUSED_VALUE = YES
GCC_WARN_UNUSED_VARIABLE = YES
//OCHamcrest: CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = YES

// Apple Clang - Warnings - C++
CLANG_WARN_VEXING_PARSE = YES
CLANG_WARN_DELETE_NON_VIRTUAL_DTOR = YES
CLANG_WARN__EXIT_TIME_DESTRUCTORS = YES
GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES
GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = YES
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES
CLANG_WARN_SUSPICIOUS_MOVE = YES
GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = YES
CLANG_WARN_ATOMIC_IMPLICIT_SEQ_CST = YES
CLANG_WARN_CXX0X_EXTENSIONS = YES

// Apple Clang - Warnings - Objective-C
Expand All @@ -76,6 +89,7 @@ CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES = YES
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES
GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL = YES
CLANG_WARN_OBJC_INTERFACE_IVARS = YES
CLANG_WARN_MISSING_NOESCAPE = YES
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES
//OCHamcrest: GCC_WARN_STRICT_SELECTOR_MATCH = YES
GCC_WARN_UNDECLARED_SELECTOR = YES
Expand All @@ -96,6 +110,7 @@ CLANG_STATIC_ANALYZER_MODE = Deep
CLANG_ANALYZER_DEADCODE_DEADSTORES = YES
CLANG_ANALYZER_MEMORY_MANAGEMENT = YES
CLANG_ANALYZER_NONNULL = YES
CLANG_ANALYZER_USE_AFTER_MOVE = YES_AGGRESSIVE

// Static Analyzer - Issues - Apple APIs
CLANG_ANALYZER_OBJC_NSCFERROR = YES
Expand All @@ -105,6 +120,7 @@ CLANG_ANALYZER_OBJC_COLLECTIONS = YES
CLANG_ANALYZER_GCD = YES
CLANG_ANALYZER_GCD_PERFORMANCE = YES
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE
CLANG_ANALYZER_LIBKERN_RETAIN_COUNT = YES

// Static Analyzer - Issues - Objective-C
CLANG_ANALYZER_OBJC_ATSYNC = YES
Expand Down

0 comments on commit 1ae4319

Please sign in to comment.