<commit_before>//===- Diagnostics.h - Diagnostic Definitions -------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
//
//  This file defines all of the diagnostics emitted by Swift.
//
//===----------------------------------------------------------------------===//

#ifndef SWIFT_DIAGNOSTICS_H
#define SWIFT_DIAGNOSTICS_H

#include "swift/Basic/DiagnosticEngine.h"

namespace llvm {
  class StringRef;
}

namespace swift {
  using llvm::StringRef;
  
  namespace detail {
    template<typename T>
    struct DiagWithArguments;
    
    template<typename ...ArgTypes>
    struct DiagWithArguments<void(ArgTypes...)> {
      typedef Diag<ArgTypes...> type;
    };
  }
  
  namespace diags {
  // Declare all of the diagnostics objects with their appropriate types.
#define DIAG(KIND,ID,Category,Options,Text,Signature) \
  extern detail::DiagWithArguments<void Signature>::type ID;
#include "Diagnostics.def"  
  }
}

#endif
<commit_msg>switch to LLVM umbrella header to get stringref.<commit_after>//===- Diagnostics.h - Diagnostic Definitions -------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
//
//  This file defines all of the diagnostics emitted by Swift.
//
//===----------------------------------------------------------------------===//

#ifndef SWIFT_DIAGNOSTICS_H
#define SWIFT_DIAGNOSTICS_H

#include "swift/AST/LLVM.h"
#include "swift/Basic/DiagnosticEngine.h"

namespace swift {
  namespace detail {
    template<typename T>
    struct DiagWithArguments;
    
    template<typename ...ArgTypes>
    struct DiagWithArguments<void(ArgTypes...)> {
      typedef Diag<ArgTypes...> type;
    };
  }
  
  namespace diags {
  // Declare all of the diagnostics objects with their appropriate types.
#define DIAG(KIND,ID,Category,Options,Text,Signature) \
  extern detail::DiagWithArguments<void Signature>::type ID;
#include "Diagnostics.def"  
  }
}

#endif

{'fraction_non_alphanumeric': 0.23222222222222222, 'fraction_numerical': 0.007407407407407408, 'mean_word_length': 2.1334106728538282, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3290073', 'n_tokens_mistral': 759, 'n_tokens_neox': 717, 'n_words': 219}