Deleted Added
full compact
DelayedDiagnostic.cpp (226633) DelayedDiagnostic.cpp (234353)
1//===--- DelayedDiagnostic.cpp - Delayed declarator diagnostics -*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 6 unchanged lines hidden (view full) ---

15//
16//===----------------------------------------------------------------------===//
17#include "clang/Sema/DelayedDiagnostic.h"
18#include <string.h>
19using namespace clang;
20using namespace sema;
21
22DelayedDiagnostic DelayedDiagnostic::makeDeprecation(SourceLocation Loc,
1//===--- DelayedDiagnostic.cpp - Delayed declarator diagnostics -*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 6 unchanged lines hidden (view full) ---

15//
16//===----------------------------------------------------------------------===//
17#include "clang/Sema/DelayedDiagnostic.h"
18#include <string.h>
19using namespace clang;
20using namespace sema;
21
22DelayedDiagnostic DelayedDiagnostic::makeDeprecation(SourceLocation Loc,
23 const NamedDecl *D,
24 StringRef Msg) {
23 const NamedDecl *D,
24 const ObjCInterfaceDecl *UnknownObjCClass,
25 StringRef Msg) {
25 DelayedDiagnostic DD;
26 DD.Kind = Deprecation;
27 DD.Triggered = false;
28 DD.Loc = Loc;
29 DD.DeprecationData.Decl = D;
26 DelayedDiagnostic DD;
27 DD.Kind = Deprecation;
28 DD.Triggered = false;
29 DD.Loc = Loc;
30 DD.DeprecationData.Decl = D;
31 DD.DeprecationData.UnknownObjCClass = UnknownObjCClass;
30 char *MessageData = 0;
31 if (Msg.size()) {
32 MessageData = new char [Msg.size()];
33 memcpy(MessageData, Msg.data(), Msg.size());
34 }
35
36 DD.DeprecationData.Message = MessageData;
37 DD.DeprecationData.MessageLen = Msg.size();

--- 17 unchanged lines hidden ---
32 char *MessageData = 0;
33 if (Msg.size()) {
34 MessageData = new char [Msg.size()];
35 memcpy(MessageData, Msg.data(), Msg.size());
36 }
37
38 DD.DeprecationData.Message = MessageData;
39 DD.DeprecationData.MessageLen = Msg.size();

--- 17 unchanged lines hidden ---