Skip to content

Commit

Permalink
Remove the rest of #pragma once in one big CL.
Browse files Browse the repository at this point in the history
For context see this thread:
  https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II

TBR=thakis,pkasting,jam

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
ajwong@chromium.org committed Jul 11, 2012
1 parent a19317f commit 01c86ec
Show file tree
Hide file tree
Showing 4,021 changed files with 2 additions and 4,074 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef ASH_SYSTEM_KEYBOARD_BRIGHTNESS_KEYBOARD_BRIGHTNESS_CONTROL_DELEGATE_H_
#define ASH_SYSTEM_KEYBOARD_BRIGHTNESS_KEYBOARD_BRIGHTNESS_CONTROL_DELEGATE_H_
#pragma once

namespace ui {
class Accelerator;
Expand Down
1 change: 0 additions & 1 deletion base/allocator/allocator_extension.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_ALLOCATOR_ALLOCATOR_EXTENSION_H
#define BASE_ALLOCATOR_ALLOCATOR_EXTENSION_H
#pragma once

#include "base/allocator/allocator_extension_thunks.h"
#include "base/base_export.h"
Expand Down
1 change: 0 additions & 1 deletion base/allocator/allocator_extension_thunks.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_ALLOCATOR_ALLOCATOR_THUNKS_EXTENSION_H
#define BASE_ALLOCATOR_ALLOCATOR_THUNKS_EXTENSION_H
#pragma once

namespace base {
namespace allocator {
Expand Down
1 change: 0 additions & 1 deletion base/android/locale_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_ANDROID_LOCALE_UTILS_H_
#define BASE_ANDROID_LOCALE_UTILS_H_
#pragma once

#include <jni.h>

Expand Down
1 change: 0 additions & 1 deletion base/at_exit.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_AT_EXIT_H_
#define BASE_AT_EXIT_H_
#pragma once

#include <stack>

Expand Down
1 change: 0 additions & 1 deletion base/atomic_ref_count.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

#ifndef BASE_ATOMIC_REF_COUNT_H_
#define BASE_ATOMIC_REF_COUNT_H_
#pragma once

#include "base/atomicops.h"
#include "base/third_party/dynamic_annotations/dynamic_annotations.h"
Expand Down
1 change: 0 additions & 1 deletion base/atomic_sequence_num.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_ATOMIC_SEQUENCE_NUM_H_
#define BASE_ATOMIC_SEQUENCE_NUM_H_
#pragma once

#include "base/atomicops.h"
#include "base/basictypes.h"
Expand Down
1 change: 0 additions & 1 deletion base/atomicops.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

#ifndef BASE_ATOMICOPS_H_
#define BASE_ATOMICOPS_H_
#pragma once

#include "base/basictypes.h"
#include "build/build_config.h"
Expand Down
1 change: 0 additions & 1 deletion base/atomicops_internals_arm_gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#ifndef BASE_ATOMICOPS_INTERNALS_ARM_GCC_H_
#define BASE_ATOMICOPS_INTERNALS_ARM_GCC_H_
#pragma once

namespace base {
namespace subtle {
Expand Down
1 change: 0 additions & 1 deletion base/atomicops_internals_atomicword_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#ifndef BASE_ATOMICOPS_INTERNALS_ATOMICWORD_COMPAT_H_
#define BASE_ATOMICOPS_INTERNALS_ATOMICWORD_COMPAT_H_
#pragma once

// AtomicWord is a synonym for intptr_t, and Atomic32 is a synonym for int32,
// which in turn means int. On some LP32 platforms, intptr_t is an int, but
Expand Down
1 change: 0 additions & 1 deletion base/atomicops_internals_mips_gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#ifndef BASE_ATOMICOPS_INTERNALS_MIPS_GCC_H_
#define BASE_ATOMICOPS_INTERNALS_MIPS_GCC_H_
#pragma once

#define ATOMICOPS_COMPILER_BARRIER() __asm__ __volatile__("" : : : "memory")

Expand Down
1 change: 0 additions & 1 deletion base/atomicops_internals_x86_gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#ifndef BASE_ATOMICOPS_INTERNALS_X86_GCC_H_
#define BASE_ATOMICOPS_INTERNALS_X86_GCC_H_
#pragma once

#include "base/base_export.h"

Expand Down
1 change: 0 additions & 1 deletion base/atomicops_internals_x86_macosx.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#ifndef BASE_ATOMICOPS_INTERNALS_X86_MACOSX_H_
#define BASE_ATOMICOPS_INTERNALS_X86_MACOSX_H_
#pragma once

#include <libkern/OSAtomic.h>

Expand Down
1 change: 0 additions & 1 deletion base/atomicops_internals_x86_msvc.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#ifndef BASE_ATOMICOPS_INTERNALS_X86_MSVC_H_
#define BASE_ATOMICOPS_INTERNALS_X86_MSVC_H_
#pragma once

#include <windows.h>

Expand Down
1 change: 0 additions & 1 deletion base/auto_reset.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_AUTO_RESET_H_
#define BASE_AUTO_RESET_H_
#pragma once

#include "base/basictypes.h"

Expand Down
1 change: 0 additions & 1 deletion base/base64.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_BASE64_H__
#define BASE_BASE64_H__
#pragma once

#include <string>

Expand Down
1 change: 0 additions & 1 deletion base/base_export.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_BASE_EXPORT_H_
#define BASE_BASE_EXPORT_H_
#pragma once

#if defined(COMPONENT_BUILD)
#if defined(WIN32)
Expand Down
1 change: 0 additions & 1 deletion base/base_paths.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_BASE_PATHS_H_
#define BASE_BASE_PATHS_H_
#pragma once

// This file declares path keys for the base module. These can be used with
// the PathService to access various special directories and files.
Expand Down
1 change: 0 additions & 1 deletion base/base_paths_android.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_BASE_PATHS_ANDROID_H_
#define BASE_BASE_PATHS_ANDROID_H_
#pragma once

// This file declares Android-specific path keys for the base module.
// These can be used with the PathService to access various special
Expand Down
1 change: 0 additions & 1 deletion base/base_paths_mac.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_BASE_PATHS_MAC_H_
#define BASE_BASE_PATHS_MAC_H_
#pragma once

// This file declares Mac-specific path keys for the base module.
// These can be used with the PathService to access various special
Expand Down
1 change: 0 additions & 1 deletion base/base_paths_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_BASE_PATHS_WIN_H__
#define BASE_BASE_PATHS_WIN_H__
#pragma once

// This file declares windows-specific path keys for the base module.
// These can be used with the PathService to access various special
Expand Down
1 change: 0 additions & 1 deletion base/base_switches.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#ifndef BASE_BASE_SWITCHES_H_
#define BASE_BASE_SWITCHES_H_
#pragma once

namespace switches {

Expand Down
1 change: 0 additions & 1 deletion base/basictypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_BASICTYPES_H_
#define BASE_BASICTYPES_H_
#pragma once

#include <limits.h> // So we can set the bounds of our types
#include <stddef.h> // For size_t
Expand Down
1 change: 0 additions & 1 deletion base/bind.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#ifndef BASE_BIND_H_
#define BASE_BIND_H_
#pragma once

#include "base/bind_internal.h"
#include "base/callback_internal.h"
Expand Down
1 change: 0 additions & 1 deletion base/bind.h.pump
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ $var MAX_ARITY = 7

#ifndef BASE_BIND_H_
#define BASE_BIND_H_
#pragma once

#include "base/bind_internal.h"
#include "base/callback_internal.h"
Expand Down
1 change: 0 additions & 1 deletion base/bind_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@

#ifndef BASE_BIND_HELPERS_H_
#define BASE_BIND_HELPERS_H_
#pragma once

#include "base/basictypes.h"
#include "base/callback.h"
Expand Down
1 change: 0 additions & 1 deletion base/bind_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#ifndef BASE_BIND_INTERNAL_H_
#define BASE_BIND_INTERNAL_H_
#pragma once

#include "base/bind_helpers.h"
#include "base/callback_internal.h"
Expand Down
1 change: 0 additions & 1 deletion base/bind_internal.h.pump
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ $range ARITY 0..MAX_ARITY

#ifndef BASE_BIND_INTERNAL_H_
#define BASE_BIND_INTERNAL_H_
#pragma once

#include "base/bind_helpers.h"
#include "base/callback_internal.h"
Expand Down
1 change: 0 additions & 1 deletion base/bind_internal_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

#ifndef BASE_BIND_INTERNAL_WIN_H_
#define BASE_BIND_INTERNAL_WIN_H_
#pragma once

// In the x64 architecture in Windows, __fastcall, __stdcall, etc, are all
// the same as __cdecl which would turn the following specializations into
Expand Down
1 change: 0 additions & 1 deletion base/bind_internal_win.h.pump
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ $var MAX_ARITY = 7

#ifndef BASE_BIND_INTERNAL_WIN_H_
#define BASE_BIND_INTERNAL_WIN_H_
#pragma once

// In the x64 architecture in Windows, __fastcall, __stdcall, etc, are all
// the same as __cdecl which would turn the following specializations into
Expand Down
1 change: 0 additions & 1 deletion base/bits.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#ifndef BASE_BITS_H_
#define BASE_BITS_H_
#pragma once

#include "base/basictypes.h"
#include "base/logging.h"
Expand Down
1 change: 0 additions & 1 deletion base/build_time.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_BUILD_TIME_
#define BASE_BUILD_TIME_
#pragma once

#include "base/base_export.h"
#include "base/time.h"
Expand Down
1 change: 0 additions & 1 deletion base/callback.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#ifndef BASE_CALLBACK_H_
#define BASE_CALLBACK_H_
#pragma once

#include "base/callback_forward.h"
#include "base/callback_internal.h"
Expand Down
1 change: 0 additions & 1 deletion base/callback.h.pump
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ $var MAX_ARITY = 7

#ifndef BASE_CALLBACK_H_
#define BASE_CALLBACK_H_
#pragma once

#include "base/callback_forward.h"
#include "base/callback_internal.h"
Expand Down
1 change: 0 additions & 1 deletion base/callback_forward.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_CALLBACK_FORWARD_H_
#define BASE_CALLBACK_FORWARD_H_
#pragma once

namespace base {

Expand Down
1 change: 0 additions & 1 deletion base/callback_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#ifndef BASE_CALLBACK_INTERNAL_H_
#define BASE_CALLBACK_INTERNAL_H_
#pragma once

#include <stddef.h>

Expand Down
1 change: 0 additions & 1 deletion base/cancelable_callback.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@

#ifndef BASE_CANCELABLE_CALLBACK_H_
#define BASE_CANCELABLE_CALLBACK_H_
#pragma once

#include "base/base_export.h"
#include "base/bind.h"
Expand Down
1 change: 0 additions & 1 deletion base/chromeos/chromeos_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_CHROMEOS_CHROMEOS_VERSION_H_
#define BASE_CHROMEOS_CHROMEOS_VERSION_H_
#pragma once

#include "base/base_export.h"

Expand Down
1 change: 0 additions & 1 deletion base/command_line.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#ifndef BASE_COMMAND_LINE_H_
#define BASE_COMMAND_LINE_H_
#pragma once

#include <stddef.h>
#include <map>
Expand Down
1 change: 0 additions & 1 deletion base/compiler_specific.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_COMPILER_SPECIFIC_H_
#define BASE_COMPILER_SPECIFIC_H_
#pragma once

#include "build/build_config.h"

Expand Down
1 change: 0 additions & 1 deletion base/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_CPU_H_
#define BASE_CPU_H_
#pragma once

#include <string>

Expand Down
1 change: 0 additions & 1 deletion base/debug/alias.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_DEBUG_ALIAS_H_
#define BASE_DEBUG_ALIAS_H_
#pragma once

#include "base/base_export.h"

Expand Down
1 change: 0 additions & 1 deletion base/debug/debug_on_start_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#ifndef BASE_DEBUG_DEBUG_ON_START_WIN_H_
#define BASE_DEBUG_DEBUG_ON_START_WIN_H_
#pragma once

#include "base/basictypes.h"
#include "build/build_config.h"
Expand Down
1 change: 0 additions & 1 deletion base/debug/debugger.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#ifndef BASE_DEBUG_DEBUGGER_H
#define BASE_DEBUG_DEBUGGER_H
#pragma once

#include "base/base_export.h"

Expand Down
1 change: 0 additions & 1 deletion base/debug/leak_annotations.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_DEBUG_LEAK_ANNOTATIONS_H_
#define BASE_DEBUG_LEAK_ANNOTATIONS_H_
#pragma once

#include "build/build_config.h"

Expand Down
1 change: 0 additions & 1 deletion base/debug/leak_tracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_DEBUG_LEAK_TRACKER_H_
#define BASE_DEBUG_LEAK_TRACKER_H_
#pragma once

// Only enable leak tracking in debug builds.
#ifndef NDEBUG
Expand Down
1 change: 0 additions & 1 deletion base/debug/profiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_DEBUG_PROFILER_H
#define BASE_DEBUG_PROFILER_H
#pragma once

#include <string>

Expand Down
1 change: 0 additions & 1 deletion base/debug/stack_trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#ifndef BASE_DEBUG_STACK_TRACE_H_
#define BASE_DEBUG_STACK_TRACE_H_
#pragma once

#include <iosfwd>
#include <string>
Expand Down
1 change: 0 additions & 1 deletion base/debug/trace_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@

#ifndef BASE_DEBUG_TRACE_EVENT_H_
#define BASE_DEBUG_TRACE_EVENT_H_
#pragma once

#include <string>

Expand Down
1 change: 0 additions & 1 deletion base/debug/trace_event_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#ifndef BASE_DEBUG_TRACE_EVENT_IMPL_H_
#define BASE_DEBUG_TRACE_EVENT_IMPL_H_
#pragma once

#include "build/build_config.h"

Expand Down
Loading

0 comments on commit 01c86ec

Please sign in to comment.