Format.h (198953) | Format.h (201360) |
---|---|
1//===- Format.h - Efficient printf-style formatting for streams -*- 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//===----------------------------------------------------------------------===// --- 11 unchanged lines hidden (view full) --- 20// 21//===----------------------------------------------------------------------===// 22 23#ifndef LLVM_SUPPORT_FORMAT_H 24#define LLVM_SUPPORT_FORMAT_H 25 26#include <cassert> 27#include <cstdio> | 1//===- Format.h - Efficient printf-style formatting for streams -*- 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//===----------------------------------------------------------------------===// --- 11 unchanged lines hidden (view full) --- 20// 21//===----------------------------------------------------------------------===// 22 23#ifndef LLVM_SUPPORT_FORMAT_H 24#define LLVM_SUPPORT_FORMAT_H 25 26#include <cassert> 27#include <cstdio> |
28#ifdef WIN32 | 28#ifdef _MSC_VER 29// FIXME: This define is wrong: 30// - _snprintf does not guarantee that trailing null is always added - if 31// there is no space for null, it does not report any error. 32// - According to C++ standard, snprintf should be visible in the 'std' 33// namespace - this define makes this impossible. |
29#define snprintf _snprintf 30#endif 31 32namespace llvm { 33 34/// format_object_base - This is a helper class used for handling formatted 35/// output. It is the abstract base class of a templated derived class. 36class format_object_base { --- 113 unchanged lines hidden --- | 34#define snprintf _snprintf 35#endif 36 37namespace llvm { 38 39/// format_object_base - This is a helper class used for handling formatted 40/// output. It is the abstract base class of a templated derived class. 41class format_object_base { --- 113 unchanged lines hidden --- |